summaryrefslogtreecommitdiffstats
path: root/kernel/stop_machine.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-11-19 17:13:37 +0100
committerTejun Heo <tj@kernel.org>2012-11-19 17:13:37 +0100
commit02ae7486d05ae6df8395409a4945b2420f1e35c2 (patch)
tree18d3f09250a850d9d6dfe3f62dfe13f4f6353374 /kernel/stop_machine.c
parentcgroup: lock cgroup_mutex in cgroup_init_subsys() (diff)
downloadlinux-02ae7486d05ae6df8395409a4945b2420f1e35c2.tar.xz
linux-02ae7486d05ae6df8395409a4945b2420f1e35c2.zip
cgroup: fix harmless bugs in cgroup_load_subsys() fail path and cgroup_unload_subsys()
* If idr init fails, cgroup_load_subsys() cleared dummytop->subsys[] before calilng ->destroy() making CSS inaccessible to the callback, and didn't unlink ss->sibling. As no modular controller uses ->use_id, this doesn't cause any actual problems. * cgroup_unload_subsys() was forgetting to free idr, call ->pre_destroy() and clear ->active. As there currently is no modular controller which uses ->use_id, ->pre_destroy() or ->active, this doesn't cause any actual problems. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'kernel/stop_machine.c')
0 files changed, 0 insertions, 0 deletions