memcg: avoid accessing memcg after releasing reference
authorLi Zefan <lizefan@huawei.com>
Mon, 29 Apr 2013 22:08:43 +0000 (15:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 29 Apr 2013 22:54:39 +0000 (15:54 -0700)
commitfd0ccaf2bd04e54d2a6979fbfdcad856694e3877
tree62ea631673d80a7f75c78cb601d0e2946fc4ad05
parent865ffef3797da2cac85b3354b5b6050dc9660978
memcg: avoid accessing memcg after releasing reference

This might cause a use-after-free bug.

Signed-off-by: Li Zefan <lizefan@huawei.com>
Cc: Glauber Costa <glommer@parallels.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c