diff options
author | 2010-09-28 18:52:00 +0000 | |
---|---|---|
committer | 2010-09-28 18:52:00 +0000 | |
commit | d87f1e8206c3ae985c00f5cffd940304767a156f (patch) | |
tree | 246fe971dd3780b7bf83ff8a2c1f6341a3218c1a | |
parent | document disklabel uids and move a little text to improve readability; the (diff) | |
download | wireguard-openbsd-d87f1e8206c3ae985c00f5cffd940304767a156f.tar.xz wireguard-openbsd-d87f1e8206c3ae985c00f5cffd940304767a156f.zip |
malloc() without a WAIT flag
-rw-r--r-- | sys/arch/sparc/sparc/intr.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |