mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Merge branch 'for-3.11-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
Pull cgroup fix from Tejun Heo: "Fix for a minor memory leak bug in the cgroup init failure path" * 'for-3.11-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup: cgroup: fix a leak when percpu_ref_init() fails
This commit is contained in:
commit
8e28921e5e
1 changed files with 3 additions and 1 deletions
|
@ -4335,8 +4335,10 @@ static long cgroup_create(struct cgroup *parent, struct dentry *dentry,
|
|||
}
|
||||
|
||||
err = percpu_ref_init(&css->refcnt, css_release);
|
||||
if (err)
|
||||
if (err) {
|
||||
ss->css_free(cgrp);
|
||||
goto err_free_all;
|
||||
}
|
||||
|
||||
init_cgroup_css(css, ss, cgrp);
|
||||
|
||||
|
|
Loading…
Reference in a new issue