diff options
| author | Alfred Perlstein <alfred@FreeBSD.org> | 2001-04-20 22:38:40 +0000 |
|---|---|---|
| committer | Alfred Perlstein <alfred@FreeBSD.org> | 2001-04-20 22:38:40 +0000 |
| commit | 98689e1e7081da449f488bbb44c7799ba90edf49 (patch) | |
| tree | 69e8389e4510b93c8766b92c6017779f15ca2512 | |
| parent | 38bb635d3d3b22d67ad2480700bcfa4860ea8474 (diff) | |
Notes
| -rw-r--r-- | sys/kern/kern_lock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 92e8b052bacf..d1d591688fe2 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -237,8 +237,10 @@ debuglockmgr(lkp, flags, interlkp, p, name, file, line) pid = p->p_pid; mtx_lock(lkp->lk_interlock); - if (flags & LK_INTERLOCK) + if (flags & LK_INTERLOCK) { mtx_unlock(interlkp); + mtx_assert(interlkp, MA_NOTOWNED); + } extflags = (flags | lkp->lk_flags) & LK_EXTFLG_MASK; |
