From: Johannes Weiner Date: Wed, 10 Dec 2014 23:44:08 +0000 (-0800) Subject: mm: memcontrol: don't pass a NULL memcg to mem_cgroup_end_move() X-Git-Tag: omap-for-v3.19/fixes-rc1~142^2~127 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e2f245d38ba86e3922c6c188fe4a0d0688aed88;p=pandora-kernel.git mm: memcontrol: don't pass a NULL memcg to mem_cgroup_end_move() mem_cgroup_end_move() checks if the passed memcg is NULL, along with a lengthy comment to explain why this seemingly non-sensical situation is even possible. Check in cancel_attach() itself whether can_attach() set up the move context or not, it's a lot more obvious from there. Then remove the check and comment in mem_cgroup_end_move(). Signed-off-by: Johannes Weiner Acked-by: Vladimir Davydov Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed