Commit b5d646f5 authored by Li Zefan's avatar Li Zefan Committed by Tejun Heo

cgroup: remove a NULL check in cgroup_exit()

init_task.cgroups is initialized at boot phase, and whenver a ask
is forked, it's cgroups pointer is inherited from its parent, and
it's never set to NULL afterwards.
Signed-off-by: default avatarLi Zefan <lizefan@huawei.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 2739d3cc
......@@ -4994,8 +4994,7 @@ void cgroup_exit(struct task_struct *tsk, int run_callbacks)
}
task_unlock(tsk);
if (cg)
put_css_set_taskexit(cg);
put_css_set_taskexit(cg);
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment