Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm Use KM_NOSLEEP in install_coproc_handler.



details:   https://anonhg.NetBSD.org/src/rev/3310c6058787
branches:  trunk
changeset: 333025:3310c6058787
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Oct 14 22:23:22 2014 +0000

description:
Use KM_NOSLEEP in install_coproc_handler.

diffstat:

 sys/arch/arm/arm/undefined.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 0dabea8d903d -r 3310c6058787 sys/arch/arm/arm/undefined.c
--- a/sys/arch/arm/arm/undefined.c      Tue Oct 14 21:01:13 2014 +0000
+++ b/sys/arch/arm/arm/undefined.c      Tue Oct 14 22:23:22 2014 +0000
@@ -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 @@
        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;



Home | Main Index | Thread Index | Old Index