aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 10b7bedfa35a..23da93360b22 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -6784,17 +6784,14 @@ struct task_grp *sched_create_group(void)
6784 6784
6785err: 6785err:
6786 for_each_possible_cpu(i) { 6786 for_each_possible_cpu(i) {
6787 if (tg->cfs_rq && tg->cfs_rq[i]) 6787 if (tg->cfs_rq)
6788 kfree(tg->cfs_rq[i]); 6788 kfree(tg->cfs_rq[i]);
6789 if (tg->se && tg->se[i]) 6789 if (tg->se)
6790 kfree(tg->se[i]); 6790 kfree(tg->se[i]);
6791 } 6791 }
6792 if (tg->cfs_rq) 6792 kfree(tg->cfs_rq);
6793 kfree(tg->cfs_rq); 6793 kfree(tg->se);
6794 if (tg->se) 6794 kfree(tg);
6795 kfree(tg->se);
6796 if (tg)
6797 kfree(tg);
6798 6795
6799 return ERR_PTR(-ENOMEM); 6796 return ERR_PTR(-ENOMEM);
6800} 6797}