aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/sched_fair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index bedda18f37a5..290cf770b712 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -904,7 +904,7 @@ static void yield_task_fair(struct rq *rq)
904 /* 904 /*
905 * Already in the rightmost position? 905 * Already in the rightmost position?
906 */ 906 */
907 if (unlikely(rightmost->vruntime < se->vruntime)) 907 if (unlikely(!rightmost || rightmost->vruntime < se->vruntime))
908 return; 908 return;
909 909
910 /* 910 /*