diff options
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r-- | sys/kern/kern_lock.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 39822ea3f158..5d639b38a441 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -340,11 +340,10 @@ debuglockmgr(lkp, flags, interlkp, td, name, file, line) wakeup((void *)lkp); break; } - - lkp->lk_flags |= LK_HAVE_EXCL; - lkp->lk_lockholder = thr; if (lkp->lk_exclusivecount != 0) panic("lockmgr: non-zero exclusive count"); + lkp->lk_flags |= LK_HAVE_EXCL; + lkp->lk_lockholder = thr; lkp->lk_exclusivecount = 1; #if defined(DEBUG_LOCKS) lkp->lk_filename = file; |