diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index bbcac946ccdc..97c6b491dbee 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -129,6 +129,7 @@ propagate_priority(struct thread *td) MPASS(m->mtx_lock == MTX_CONTESTED); return; } + kg = td->td_ksegrp; MPASS(td->td_proc->p_magic == P_MAGIC); KASSERT(td->td_proc->p_stat != SSLEEP, ("sleeping thread owns a mutex")); diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c index bbcac946ccdc..97c6b491dbee 100644 --- a/sys/kern/subr_turnstile.c +++ b/sys/kern/subr_turnstile.c @@ -129,6 +129,7 @@ propagate_priority(struct thread *td) MPASS(m->mtx_lock == MTX_CONTESTED); return; } + kg = td->td_ksegrp; MPASS(td->td_proc->p_magic == P_MAGIC); KASSERT(td->td_proc->p_stat != SSLEEP, ("sleeping thread owns a mutex"));