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 <[email protected]> Acked-by: Paul Menage <[email protected]> Acked-by: Paul Turner <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
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)