Module Name: src
Committed By: skrll
Date: Tue Oct 14 22:23:22 UTC 2014
Modified Files:
src/sys/arch/arm/arm: undefined.c
Log Message:
Use KM_NOSLEEP in install_coproc_handler.
To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/arm/arm/undefined.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/arm/undefined.c
diff -u src/sys/arch/arm/arm/undefined.c:1.54 src/sys/arch/arm/arm/undefined.c:1.55
--- src/sys/arch/arm/arm/undefined.c:1.54 Fri Mar 28 21:44:35 2014
+++ src/sys/arch/arm/arm/undefined.c Tue Oct 14 22:23:22 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: undefined.c,v 1.54 2014/03/28 21:44:35 matt Exp $ */
+/* $NetBSD: undefined.c,v 1.55 2014/10/14 22:23:22 skrll Exp $ */
/*
* Copyright (c) 2001 Ben Harris.
@@ -55,7 +55,7 @@
#include <sys/kgdb.h>
#endif
-__KERNEL_RCSID(0, "$NetBSD: undefined.c,v 1.54 2014/03/28 21:44:35 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: undefined.c,v 1.55 2014/10/14 22:23:22 skrll Exp $");
#include <sys/kmem.h>
#include <sys/queue.h>
@@ -102,7 +102,8 @@ install_coproc_handler(int coproc, undef
KASSERT(coproc >= 0 && coproc < NUM_UNKNOWN_HANDLERS);
KASSERT(handler != NULL); /* Used to be legal. */
- uh = kmem_alloc(sizeof(*uh), KM_SLEEP);
+ uh = kmem_alloc(sizeof(*uh), KM_NOSLEEP);
+ KASSERT(uh != NULL);
uh->uh_handler = handler;
install_coproc_handler_static(coproc, uh);
return uh;