aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/cgroup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index afb8d53ca6c7..468e410f9e61 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -4344,8 +4344,10 @@ static long cgroup_create(struct cgroup *parent, struct dentry *dentry,
4344 } 4344 }
4345 4345
4346 err = percpu_ref_init(&css->refcnt, css_release); 4346 err = percpu_ref_init(&css->refcnt, css_release);
4347 if (err) 4347 if (err) {
4348 ss->css_free(cgrp);
4348 goto err_free_all; 4349 goto err_free_all;
4350 }
4349 4351
4350 init_cgroup_css(css, ss, cgrp); 4352 init_cgroup_css(css, ss, cgrp);
4351 4353