summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-10 12:12:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-10 12:12:43 +0000
commit404c7814c35cf284b0a893ad90d9ba8cc2770fee (patch)
tree0ce30f392b0a0f683fe5f6eea9ec8cd646486700 /sys/arch/i386
parent2c5d007a2c3c022926456dab9b26c189370edaca (diff)
Explicitly NULL-terminate mpbios_icu_table as required by the code which
uses it. On ramdisk kernels built with -Os, (accidental termination) did not occur, leading to heisenbug occurances....
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/mpbios_intr_fixup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/mpbios_intr_fixup.c b/sys/arch/i386/i386/mpbios_intr_fixup.c
index cb8341a6f99..2252d06001a 100644
--- a/sys/arch/i386/i386/mpbios_intr_fixup.c
+++ b/sys/arch/i386/i386/mpbios_intr_fixup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpbios_intr_fixup.c,v 1.5 2009/08/13 13:24:48 kettenis Exp $ */
+/* $OpenBSD: mpbios_intr_fixup.c,v 1.6 2015/08/10 12:12:42 deraadt Exp $ */
/*
* Copyright (c) 2006 Mark Kettenis
@@ -45,7 +45,9 @@ const struct mpbios_icu_table {
{ PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_NFORCE4_ISA2,
nforce4_mpbios_fixup },
{ PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP04_ISA,
- mcp04_mpbios_fixup }
+ mcp04_mpbios_fixup },
+ { 0, 0,
+ NULL},
};
const struct mpbios_icu_table *