From: Glauber Costa Date: Sat, 23 Feb 2013 00:34:57 +0000 (-0800) Subject: memcg: avoid dangling reference count in creation failure. X-Git-Tag: v3.9-rc1~99^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4715f01be697a3730c78f8ffffb595591d6a88c;p=pandora-kernel.git memcg: avoid dangling reference count in creation failure. When use_hierarchy is enabled, we acquire an extra reference count in our parent during cgroup creation. We don't release it, though, if any failure exist in the creation process. Signed-off-by: Glauber Costa Reported-by: Michal Hocko Acked-by: Michal Hocko Cc: Tejun Heo Cc: Hiroyuki Kamezawa Cc: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed