diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index bedda18f37a5708b58f8eacc9d9d4043d9be889e..290cf770b71252675b4756a8e5af15f10d1939fa 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c @@ -904,7 +904,7 @@ static void yield_task_fair(struct rq *rq) /* * Already in the rightmost position? */ - if (unlikely(rightmost->vruntime < se->vruntime)) + if (unlikely(!rightmost || rightmost->vruntime < se->vruntime)) return; /*