]> 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>
Tue, 26 Mar 2013 23:24:40 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 2 Apr 2013 07:29:10 +0000 (18:29 +1100)
commit37fe2f754f82c2e3d4fd60cc4f40cbd28cad23d1
tree6d31dc7f006c1e7afdea86a578ca12a44b755bf3
parent0d5deb30e298bfcf8b23bc7eefa0384ebca4f97d
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