From: Tejun Heo Date: Mon, 19 Nov 2012 16:13:37 +0000 (-0800) Subject: cgroup: fix harmless bugs in cgroup_load_subsys() fail path and cgroup_unload_subsys() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~57^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02ae7486d05ae6df8395409a4945b2420f1e35c2;p=pandora-kernel.git 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 Acked-by: Li Zefan --- Reading git-diff-tree failed