diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index c6c667d0f4a..b4b8879aa1b 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -359,6 +359,7 @@ setrunqueue(struct thread *td) KASSERT((td->td_kse != NULL), ("queueing BAD thread to run queue")); ke = td->td_kse; + ke->ke_bound = NULL; if (ke->ke_flags & KEF_ONLOANQ) { ke->ke_flags &= ~KEF_ONLOANQ; TAILQ_REMOVE(&kg->kg_lq, ke, ke_kgrlist);