]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit895f77ff04facd59ae4cc9df349aa113978c1dd0
treeee2ab90d674accd462600d52b14b386df5d748a1
parent3de54534c87b497eb1cf78be8c5c2af7250c3979
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