[PATCH] Terminate i386 local APIC DMI exception table

From: Andi Kleen
Date: Mon Sep 27 2004 - 06:50:23 EST



[sending directly to Linus because Andrew said he is away]

The i386 local APIC DMI exception table was not 0 terminated. The dmi
parser would walk into random .data space. Found during code review,
not known to cause problems, but should be still fixed. I checked all
other DMI tables and they seemed to be ok.

Signed-off-by: Andi Kleen <ak@xxxxxx>

diff -u linux/arch/i386/kernel/apic.c-o linux/arch/i386/kernel/apic.c
--- linux/arch/i386/kernel/apic.c-o 2004-09-27 12:36:35.000000000 +0200
+++ linux/arch/i386/kernel/apic.c 2004-09-27 13:44:49.000000000 +0200
@@ -1233,7 +1233,8 @@
static struct dmi_system_id __initdata apic_dmi_table[] = {
{ need_local_apic, "Intel C440GX+", {
DMI_MATCH(DMI_BOARD_VENDOR,"Intel"),
- DMI_MATCH(DMI_BOARD_NAME,"C440GX+") } }
+ DMI_MATCH(DMI_BOARD_NAME,"C440GX+") } },
+ {},
};

/*



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/