x86: fix macro with bad_bios_dmi_table
authorYinghai Lu <yhlu.kernel@gmail.com>
Tue, 23 Sep 2008 07:35:33 +0000 (00:35 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 13 Nov 2008 17:55:55 +0000 (09:55 -0800)
commit a8b71a2810386a5ac8f43d2095fe3355f0d8db37 upstream.

DMI tables need a blank NULL tail.

fixes the crash on Ingo's test box.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/setup.c

index f2dd7e5..64b5c42 100644 (file)
@@ -607,8 +607,8 @@ static struct dmi_system_id __initdata bad_bios_dmi_table[] = {
                        DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies, LTD"),
                },
        },
-       {}
 #endif
+       {}
 };
 
 /*