aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2003-10-20 19:55:21 +0000
committerJeff Roberson <jeff@FreeBSD.org>2003-10-20 19:55:21 +0000
commit484288de56f7be21d20c1bc74cb7a0e0bf188a97 (patch)
treee7ecdac1f807283a2266afcc9b3152a4309e7ce5 /sys
parentb361bd542cc59b959eb38f96029fd00900012909 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/sched_ule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 1f79439c11673..ccd7bddd88218 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) {