linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix init of mp_bus_id_to_pci_bus
@ 2003-06-05 13:05 Herbert Xu
  0 siblings, 0 replies; only message in thread
From: Herbert Xu @ 2003-06-05 13:05 UTC (permalink / raw)
  To: Marcelo Tosatti, Alan Cox; +Cc: Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 311 bytes --]

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

[-- Attachment #2: p --]
[-- Type: text/plain, Size: 804 bytes --]

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-05 12:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-05 13:05 [PATCH] Fix init of mp_bus_id_to_pci_bus Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).