summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2001-04-17 20:50:43 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2001-04-17 20:50:43 +0000
commite04670b734523b4efc3337995f6f0aa2402fa57f (patch)
treea23d7bfbc2eb28c161ef86a6216770bbd2200c4f
parent603c86672ce346f0fde026a4bd1cee3d782f5634 (diff)
Notes
-rw-r--r--sys/kern/kern_prot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index c5c67267ef6f..b493702186eb 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -1243,6 +1243,7 @@ crfree(cr)
{
mtx_lock(&cr->cr_mtx);
+ KASSERT(cr->cr_ref > 0, ("bad ucred refcount: %d", cr->cr_ref));
if (--cr->cr_ref == 0) {
mtx_destroy(&cr->cr_mtx);
/*