From 54fcd395e65bf54c23b1ce3ef533d68db1087f9b Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 28 Sep 2010 18:52:01 +0000 Subject: malloc() without a WAIT flag --- sys/arch/sparc/sparc/intr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/sparc/sparc/intr.c b/sys/arch/sparc/sparc/intr.c index 60341b662ec..7caa1889400 100644 --- a/sys/arch/sparc/sparc/intr.c +++ b/sys/arch/sparc/sparc/intr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.c,v 1.35 2010/09/20 06:33:47 matthew Exp $ */ +/* $OpenBSD: intr.c,v 1.36 2010/09/28 18:52:00 deraadt Exp $ */ /* $NetBSD: intr.c,v 1.20 1997/07/29 09:42:03 fair Exp $ */ /* @@ -485,7 +485,8 @@ softintr_establish(int level, void (*fn)(void *), void *arg) } #endif - sih = (struct sintrhand *)malloc(sizeof *sih, M_DEVBUF, M_ZERO); + sih = (struct sintrhand *)malloc(sizeof *sih, M_DEVBUF, + M_NOWAIT|M_ZERO); if (sih == NULL) return NULL; -- cgit v1.2.3