From 404c7814c35cf284b0a893ad90d9ba8cc2770fee Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 10 Aug 2015 12:12:43 +0000 Subject: 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.... --- sys/arch/i386/i386/mpbios_intr_fixup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/arch') 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 * -- cgit v1.2.3