From: Zefan Li Date: Wed, 4 Mar 2015 09:09:33 +0000 (+0800) Subject: cpuset: initialize cpuset a bit early X-Git-Tag: omap-for-v4.1/fixes-rc1~168^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=695df2132cfe3782784d4b0e1f0027168c1830ca;p=pandora-kernel.git cpuset: initialize cpuset a bit early Now we call ss->bind() in cgroup_init(), so cgroup_init() will call cpuset_bind() and then the latter will access top_cpuset's cpumask, which is NULL, because cpuset_init() is called after cgroup_init() The simplest fix is to swap cgroup_init() and cpuset_init(). Cc: Vladimir Davydov Fixes: 295458e67284 ("cgroup: call cgroup_subsys->bind on cgroup subsys initialization") Reported by: Ming Lei Signed-off-by: Zefan Li Signed-off-by: Tejun Heo Acked-by: Vladimir Davydov --- Reading git-diff-tree failed