Module Name:    src
Committed By:   yamt
Date:           Sun Aug 16 11:01:12 UTC 2009

Modified Files:
        src/sys/kern: kern_auth.c

Log Message:
kauth_cred_free: add an assertion.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/kern/kern_auth.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/kern/kern_auth.c
diff -u src/sys/kern/kern_auth.c:1.62 src/sys/kern/kern_auth.c:1.63
--- src/sys/kern/kern_auth.c:1.62	Sun Apr  5 11:50:51 2009
+++ src/sys/kern/kern_auth.c	Sun Aug 16 11:01:12 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_auth.c,v 1.62 2009/04/05 11:50:51 lukem Exp $ */
+/* $NetBSD: kern_auth.c,v 1.63 2009/08/16 11:01:12 yamt Exp $ */
 
 /*-
  * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_auth.c,v 1.62 2009/04/05 11:50:51 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_auth.c,v 1.63 2009/08/16 11:01:12 yamt Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -189,6 +189,7 @@
 
 	KASSERT(cred != NULL);
 	KASSERT(cred->cr_refcnt > 0);
+	ASSERT_SLEEPABLE();
 
 	if (atomic_dec_uint_nv(&cred->cr_refcnt) > 0)
 		return;

Reply via email to