Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Fixes: 295458e ("cgroup: call cgroup_subsys->bind on cgroup subsys initialization") Reported by: Ming Lei <[email protected]> Signed-off-by: Zefan Li <[email protected]> Signed-off-by: Tejun Heo <[email protected]> Acked-by: Vladimir Davydov <[email protected]>
- Loading branch information