From: jsg Date: Fri, 24 Apr 2015 02:22:08 +0000 (+0000) Subject: Use "softintr_pic0" instead of "softintr_fakepic" when faking a X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3534b73f54f59848369740e85900f25a9b3a4e6a;p=openbsd Use "softintr_pic0" instead of "softintr_fakepic" when faking a struct device so there is enough space in the buffer for a NUL and the unit is included in the string. discussed with deraadt and millert --- diff --git a/sys/arch/amd64/amd64/intr.c b/sys/arch/amd64/amd64/intr.c index 81433436f6e..4e9410a53b4 100644 --- a/sys/arch/amd64/amd64/intr.c +++ b/sys/arch/amd64/amd64/intr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.c,v 1.41 2015/03/14 03:38:46 jsg Exp $ */ +/* $OpenBSD: intr.c,v 1.42 2015/04/24 02:22:08 jsg Exp $ */ /* $NetBSD: intr.c,v 1.3 2003/03/03 22:16:20 fvdl Exp $ */ /* @@ -64,7 +64,7 @@ #endif struct pic softintr_pic = { - {0, {NULL}, NULL, 0, "softintr_fakepic", NULL, 0, 0}, + {0, {NULL}, NULL, 0, "softintr_pic0", NULL, 0, 0}, PIC_SOFT, #ifdef MULTIPROCESSOR {},