summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-10 12:12:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-10 12:12:59 +0000
commit94a55c5290f846196d8b980acb8e1a26d1b8906a (patch)
treea8e94c4bafbf094525031d2e008953e9e0aa9c46 /sys/arch
parent404c7814c35cf284b0a893ad90d9ba8cc2770fee (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.... Found by Mike Larkin, ok kettenis
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/mpbios_intr_fixup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/mpbios_intr_fixup.c b/sys/arch/amd64/amd64/mpbios_intr_fixup.c
index 731b0333c7e..b43e8f8f7c5 100644
--- a/sys/arch/amd64/amd64/mpbios_intr_fixup.c
+++ b/sys/arch/amd64/amd64/mpbios_intr_fixup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpbios_intr_fixup.c,v 1.6 2008/09/17 16:48:44 naddy Exp $ */
+/* $OpenBSD: mpbios_intr_fixup.c,v 1.7 2015/08/10 12:12:58 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 *