memcg: fix oops in mem_cgroup_shrink_usage
authorHugh Dickins <hugh@veritas.com>
Tue, 12 Aug 2008 22:08:41 +0000 (15:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 12 Aug 2008 23:07:28 +0000 (16:07 -0700)
commit9623e078c1f4692a91531af2f639ec8aff8f0472
treeee2ab90d674accd462600d52b14b386df5d748a1
parent3ee1062b4ee82a56294808a065b64f4bc6781a56
memcg: fix oops in mem_cgroup_shrink_usage

Got an oops in mem_cgroup_shrink_usage() when testing loop over tmpfs:
yes, of course, loop0 has no mm: other entry points check but this didn't.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c