mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
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: Li Zefan <lizefan@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
2739d3cce9
commit
b5d646f5d5
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user