]> 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>
Thu, 21 Mar 2013 05:33:54 +0000 (16:33 +1100)
commit9e6fd2c0b3b580b0dc7f82d66ebd1fe0a7e3e431
treeea8ac78f4bb841e45cd9fe3d3f32afeadb38a60c
parentc3989b0671d2d9e72cb2a00ddf2c63b81b236ab6
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