Skip to content

Commit f4d6f6c

Browse files
Glauber CostaIngo Molnar
authored andcommitted
sched, trivial: Initialize root cgroup's sibling list
Even though there are no siblings, the list should be initialized to not contain bogus values. Signed-off-by: Glauber Costa <glommer@parallels.com> Acked-by: Paul Menage <paul@paulmenage.org> Acked-by: Paul Turner <pjt@google.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1320182360-20043-2-git-send-email-glommer@parallels.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 56f570e commit f4d6f6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/sched.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8275,6 +8275,7 @@ void __init sched_init(void)
82758275
#ifdef CONFIG_CGROUP_SCHED
82768276
list_add(&root_task_group.list, &task_groups);
82778277
INIT_LIST_HEAD(&root_task_group.children);
8278+
INIT_LIST_HEAD(&root_task_group.siblings);
82788279
autogroup_init(&init_task);
82798280
#endif /* CONFIG_CGROUP_SCHED */
82808281

0 commit comments

Comments
 (0)