Fix init of mp_bus_id_to_pci_bus
diff mbox series

Message ID 20030605130526.GA15512@gondor.apana.org.au
State New, archived
Headers show
Series
  • Fix init of mp_bus_id_to_pci_bus
Related show

Commit Message

Herbert Xu June 5, 2003, 1:05 p.m. UTC
This patch fixes size argument in the initialisation of
mp_bus_id_to_pci_bus.

Cheers,

Patch
diff mbox series

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.