diff options
author | attilio <attilio@FreeBSD.org> | 2008-01-09 00:02:43 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2008-01-09 00:02:43 +0000 |
commit | c3923db2c0d355dc51a5c3cd38d963f4fb5ae7c1 (patch) | |
tree | 6381b07601899b38dfea3ac43513736b0a3eb641 /sys/kern/kern_lock.c | |
parent | 9e182da1916d63733010443cc5d45688fe47c3e7 (diff) | |
download | FreeBSD-src-c3923db2c0d355dc51a5c3cd38d963f4fb5ae7c1.zip FreeBSD-src-c3923db2c0d355dc51a5c3cd38d963f4fb5ae7c1.tar.gz |
Fix a last second typo about recent lockmgr_disown() introduction.
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r-- | sys/kern/kern_lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 6e5a7b3..f623bdc 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -546,9 +546,9 @@ lockmgr_disown(struct lock *lkp) struct thread *td; td = curthread; - KASSERT(lkp->lk_exclusivecount || lkp->lk_lockholder == LK_KERNPROC, + KASSERT(lkp->lk_exclusivecount, ("%s: %p lockmgr must be exclusively locked", __func__, lkp)); - KASSERT(lkp->lk_lockholder == td, + KASSERT(lkp->lk_lockholder == td || lkp->lk_lockholder == LK_KERNPROC, ("%s: %p lockmgr must be locked by curthread (%p)", __func__, lkp, td)); |