mirror of
https://github.com/torvalds/linux.git
synced 2025-11-02 17:49:03 +02:00
cgroup: fix goto ordering in cgroup_init()
Go to the appropriate section labels when css_rstat_init() or
psi_cgroup_alloc() fails.
Signed-off-by: JP Kobryn <inwardvessel@gmail.com>
Fixes: a97915559f ("cgroup: change rstat function signatures from cgroup-based to css-based")
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
7efbc8f2f9
commit
f304da9134
1 changed files with 2 additions and 2 deletions
|
|
@ -5708,11 +5708,11 @@ static struct cgroup *cgroup_create(struct cgroup *parent, const char *name,
|
|||
*/
|
||||
ret = css_rstat_init(&cgrp->self);
|
||||
if (ret)
|
||||
goto out_stat_exit;
|
||||
goto out_kernfs_remove;
|
||||
|
||||
ret = psi_cgroup_alloc(cgrp);
|
||||
if (ret)
|
||||
goto out_kernfs_remove;
|
||||
goto out_stat_exit;
|
||||
|
||||
if (cgrp->root == &cgrp_dfl_root) {
|
||||
ret = cgroup_bpf_inherit(cgrp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue