commit | c822035d742b78bc1f5f09ce8a8e4a2d49e2a3d4 | [log] [tgz] |
---|---|---|
author | Glauber Costa <glommer@parallels.com> | Mon Jan 21 12:13:41 2013 +0400 |
committer | Glauber Costa <glommer@parallels.com> | Mon Jan 21 12:16:55 2013 +0400 |
tree | dd261ab6d519128b39ad5bf9c6639dcd21f24d2b | |
parent | b994cbaad58beb572e590f9d38e68d19abcb804d [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 <glommer@parallels.com> Reported-by: Michal Hocko <mhocko@suse>