diff options
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r-- | sys/kern/kern_lock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 459811e..614beb2 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -1232,6 +1232,9 @@ _lockmgr_disown(struct lock *lk, const char *file, int line) { uintptr_t tid, x; + if (SCHEDULER_STOPPED()) + return; + tid = (uintptr_t)curthread; _lockmgr_assert(lk, KA_XLOCKED | KA_NOTRECURSED, file, line); |