[PATCH] Fix init of mp_bus_id_to_pci_bus

Herbert Xu (herbert@gondor.apana.org.au)
Thu, 5 Jun 2003 23:05:26 +1000


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-8478-1054820223-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--=_courier-8478-1054820223-0001-2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=p

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.

--=_courier-8478-1054820223-0001-2--