summaryrefslogtreecommitdiff
path: root/Documentation/cgroups
diff options
context:
space:
mode:
authorVladimir Davydov <vdavydov@parallels.com>2013-12-12 23:17:08 +0400
committerTejun Heo <tj@kernel.org>2013-12-14 00:46:49 +0400
commit10bf2f7e7db993273419ca9f51f5934e4cf71768 (patch)
tree3d6f820b4409859fc97e4dfc8a3c90d936d27b24 /Documentation/cgroups
parent0be8669dd530f60cf3f59f084518570c1dfb47ee (diff)
downloadlinux-10bf2f7e7db993273419ca9f51f5934e4cf71768.tar.xz
cgroup: fix fail path in cgroup_load_subsys()
Calling cgroup_unload_subsys() from cgroup_load_subsys() after online_css() failure will result in a NULL ptr dereference on attempt to offline_css(), because online_css() only assigns css to cgroup on success. Let's fix that by skipping calls to offline_css() and css_free() in cgroup_unload_subsys() if there is no css, and freeing css in cgroup_load_subsys() on online_css() failure. Signed-off-by: Vladimir Davydov <vdavydov@parallels.com> Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'Documentation/cgroups')
0 files changed, 0 insertions, 0 deletions