[PATCH 1/2] Revert "memcg: avoid dangling reference count in creation failure."

2013-04-03 Thread Michal Hocko
This reverts commit e4715f01be697a3730c78f8b595591d6a88c mem_cgroup_put is hierarchy aware so mem_cgroup_put(memcg) already drops an additional reference from all parents so the additional mem_cgrroup_put(parent) potentially causes use-after-free. Signed-off-by: Li Zefan Signed-off-by:

[PATCH 1/2] Revert memcg: avoid dangling reference count in creation failure.

2013-04-03 Thread Michal Hocko
This reverts commit e4715f01be697a3730c78f8b595591d6a88c mem_cgroup_put is hierarchy aware so mem_cgroup_put(memcg) already drops an additional reference from all parents so the additional mem_cgrroup_put(parent) potentially causes use-after-free. Signed-off-by: Li Zefan lize...@huawei.com