From cf854f9c0722d458817bee1cd920d617956a4c33 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 27 Sep 2010 17:39:44 +0000 Subject: must use M_WAITOK here; run into by landry --- sys/arch/sparc64/sparc64/intr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/arch/sparc64/sparc64/intr.c b/sys/arch/sparc64/sparc64/intr.c index 940298d6337..411535565c8 100644 --- a/sys/arch/sparc64/sparc64/intr.c +++ b/sys/arch/sparc64/sparc64/intr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.c,v 1.37 2010/09/20 06:33:47 matthew Exp $ */ +/* $OpenBSD: intr.c,v 1.38 2010/09/27 17:39:43 deraadt Exp $ */ /* $NetBSD: intr.c,v 1.39 2001/07/19 23:38:11 eeh Exp $ */ /* @@ -312,7 +312,7 @@ softintr_establish(level, fun, arg) if (level == IPL_TTY) level = IPL_SOFTTTY; - ih = malloc(sizeof(*ih), M_DEVBUF, M_ZERO); + ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK | M_ZERO); ih->ih_fun = (int (*)(void *))fun; /* XXX */ ih->ih_arg = arg; ih->ih_pil = level; -- cgit v1.2.3