PATCH: clear mp bus array properly

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 14 Jul 2003 13:13:41 +0100


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/