]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmap: find_vma: remove the WARN_ON_ONCE(!mm) check
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Wed, 20 Mar 2013 04:07:27 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Mar 2013 04:22:51 +0000 (15:22 +1100)
commit8b10de2ef8c89a4f24e3b16e7e96c8858271b977
tree47c67a6eadf6e666792636994eecb8d3e27c7148
parentd78c593d08c68594d53c76cbc3ec5ab5ef61224f
mmap: find_vma: remove the WARN_ON_ONCE(!mm) check

Remove the WARN_ON_ONCE(!mm) check as the comment suggested.  Kernel code
calls find_vma only when it is absolutely sure that the mm_struct arg to
it is non-NULL.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap.c