* [GIT PULL] cgroup fixes for 3.11-rc4
@ 2013-08-05 0:15 Tejun Heo
0 siblings, 0 replies; only message in thread
From: Tejun Heo @ 2013-08-05 0:15 UTC (permalink / raw)
To: Linus Torvalds, Li Zefan
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
cgroups-u79uwXL29TY76Z2rM5mHXA
Hello, Linus.
This pull request contains just one fix for minor memory leak bug in
init failure path and is available at
git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-3.11-fixes
for you to fetch changes up to da0a12caffad2eeadea429f83818408e7b77379a:
cgroup: fix a leak when percpu_ref_init() fails (2013-07-31 06:13:25 -0400)
Thanks.
----------------------------------------------------------------
Li Zefan (1):
cgroup: fix a leak when percpu_ref_init() fails
kernel/cgroup.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index afb8d53..468e410 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -4344,8 +4344,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);
--
tejun
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-05 0:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-05 0:15 [GIT PULL] cgroup fixes for 3.11-rc4 Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).