commit | e4715f01be697a3730c78f8ffffb595591d6a88c | [log] [tgz] |
---|---|---|
author | Glauber Costa <[email protected]> | Fri Feb 22 16:34:57 2013 -0800 |
committer | Linus Torvalds <[email protected]> | Sat Feb 23 17:50:18 2013 -0800 |
tree | 6ba363f7454d0b8e6b4db8997c8b7fa587f20279 | |
parent | 692e89abd154b04d212dce0c18a449bda15aac04 [diff] |
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 <[email protected]> Reported-by: Michal Hocko <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Hiroyuki Kamezawa <[email protected]> Cc: Johannes Weiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>