diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-09-27 17:39:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-09-27 17:39:44 +0000 |
commit | cf854f9c0722d458817bee1cd920d617956a4c33 (patch) | |
tree | 8305c7467bcbc95701399aae2bfd0d8bdc58522a /sys | |
parent | 702f545d30a02f216f43f5c0af916291b71782b6 (diff) |
must use M_WAITOK here; run into by landry
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/sparc64/intr.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |