diff options
author | jhb <jhb@FreeBSD.org> | 2001-08-10 23:29:15 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-08-10 23:29:15 +0000 |
commit | e1cf3a47437c4deaa5cf65bf38a73b29bcbf00c6 (patch) | |
tree | b72268b23d8e510c5ab5cf93ea9fd117254c9c6c /sys/kern/kern_lock.c | |
parent | de6d7f13db1d86ccb00650c2ab9e9491ba5b6c9a (diff) | |
download | FreeBSD-src-e1cf3a47437c4deaa5cf65bf38a73b29bcbf00c6.zip FreeBSD-src-e1cf3a47437c4deaa5cf65bf38a73b29bcbf00c6.tar.gz |
If we've panic'd already, then just bail in lockmgr rather than blocking or
possibly panic'ing again.
Diffstat (limited to 'sys/kern/kern_lock.c')
-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) { |