diff options
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 8264bb5dbd51..a10ac0bcee64 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -1458,7 +1458,7 @@ __load_balance_iterator(struct cfs_rq *cfs_rq, struct list_head *next) | |||
1458 | next = next->next; | 1458 | next = next->next; |
1459 | } while (next != &cfs_rq->tasks && !entity_is_task(se)); | 1459 | } while (next != &cfs_rq->tasks && !entity_is_task(se)); |
1460 | 1460 | ||
1461 | if (next == &cfs_rq->tasks) | 1461 | if (next == &cfs_rq->tasks && !entity_is_task(se)) |
1462 | return NULL; | 1462 | return NULL; |
1463 | 1463 | ||
1464 | cfs_rq->balance_iterator = next; | 1464 | cfs_rq->balance_iterator = next; |