Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+3 -1
+3 -1
kernel/cgroup.c
··· 4335 4335 } 4336 4336 4337 4337 err = percpu_ref_init(&css->refcnt, css_release); 4338 - if (err) 4338 + if (err) { 4339 + ss->css_free(cgrp); 4339 4340 goto err_free_all; 4341 + } 4340 4342 4341 4343 init_cgroup_css(css, ss, cgrp); 4342 4344