Go to the appropriate section labels when css_rstat_init() or
psi_cgroup_alloc() fails.
Signed-off-by: JP Kobryn <inwardvessel@gmail.com>
Fixes: a97915559f5c ("cgroup: change rstat function signatures from cgroup-based to css-based")
Signed-off-by: Tejun Heo <tj@kernel.org>
*/
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);