diff options
-rw-r--r-- | sys/kern/sched_ule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 1f79439..ccd7bdd 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -1311,6 +1311,8 @@ sched_pctcpu(struct thread *td) pctcpu = 0; ke = td->td_kse; + if (ke == NULL) + return (0); mtx_lock_spin(&sched_lock); if (ke->ke_ticks) { |