diff options
Diffstat (limited to 'sys/kern/kern_kse.c')
-rw-r--r-- | sys/kern/kern_kse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index 1a3ae43..3adc8ae 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -1255,7 +1255,7 @@ thread_exit(void) KASSERT(kg != NULL, ("thread exiting without a kse group")); PROC_LOCK_ASSERT(p, MA_OWNED); CTR1(KTR_PROC, "thread_exit: thread %p", td); - KASSERT(!mtx_owned(&Giant), ("dying thread owns giant")); + mtx_assert(&Giant, MA_NOTOWNED); if (td->td_standin != NULL) { thread_stash(td->td_standin); |