Commit 8291471
cgroup: get the wrong css for css_alloc() during cgroup_init_subsys()
css_alloc() needs the parent css, while cgroup_css() gets current
cgropu's css. So we are getting the wrong css during
cgroup_init_subsys().
Fortunately, cgrp_dfl_root.cgrp's css is not set yet, so the value we
pass to css_alloc() is NULL anyway.
Let's pass NULL directly during init, since we know there is no parent
yet.
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>1 parent eda0970 commit 8291471
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5711 | 5711 | | |
5712 | 5712 | | |
5713 | 5713 | | |
5714 | | - | |
| 5714 | + | |
5715 | 5715 | | |
5716 | 5716 | | |
5717 | 5717 | | |
| |||
0 commit comments