Messages in this thread Patch in this message | | | Date | Thu, 5 Jun 2003 23:05:26 +1000 | Subject | [PATCH] Fix init of mp_bus_id_to_pci_bus | From | Herbert Xu <> |
| |
This patch fixes size argument in the initialisation of mp_bus_id_to_pci_bus.
Cheers, -- Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt Index: arch/i386/kernel/mpparse.c =================================================================== RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.4/arch/i386/kernel/mpparse.c,v retrieving revision 1.1.1.10 diff -u -r1.1.1.10 mpparse.c --- arch/i386/kernel/mpparse.c 1 Jun 2003 03:06:21 -0000 1.1.1.10 +++ arch/i386/kernel/mpparse.c 4 Jun 2003 13:28:24 -0000 @@ -517,7 +517,7 @@ mp_bus_id_to_local = (int *)&bus_data[(max_mp_busses * sizeof(int)) * 2]; mp_bus_id_to_pci_bus = (int *)&bus_data[(max_mp_busses * sizeof(int)) * 3]; mp_irqs = (struct mpc_config_intsrc *)&bus_data[(max_mp_busses * sizeof(int)) * 4]; - memset(mp_bus_id_to_pci_bus, -1, max_mp_busses); + memset(mp_bus_id_to_pci_bus, -1, max_mp_busses * sizeof(int)); /* * Now process the configuration blocks. | |