PATCH: clear mp bus array properly

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon Jul 14 2003 - 07:13:41 EST


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.22-pre5/arch/i386/kernel/mpparse.c linux.22-pre5-ac1/arch/i386/kernel/mpparse.c
--- linux.22-pre5/arch/i386/kernel/mpparse.c 2003-07-14 12:27:32.000000000 +0100
+++ linux.22-pre5-ac1/arch/i386/kernel/mpparse.c 2003-07-14 12:37:23.000000000 +0100
@@ -516,7 +519,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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 15 2003 - 22:00:51 EST