diff options
-rw-r--r-- | sys/kern/kern_lock.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index f5bb326..147508c 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -242,6 +242,11 @@ debuglockmgr(lkp, flags, interlkp, p, name, file, line) mtx_unlock(interlkp); } + if (panicstr != NULL) { + mtx_unlock(lkp->lk_interlock); + return (0); + } + extflags = (flags | lkp->lk_flags) & LK_EXTFLG_MASK; switch (flags & LK_TYPE_MASK) { |