From: Linus Torvalds Date: Fri, 19 Oct 2012 20:37:57 +0000 (-0700) Subject: remap_file_pages: correctly handle the case of a NULL vm_ops pointer X-Git-Tag: v3.7-rc2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deb521c44fa529b24cc78a64702757a683f82487;p=pandora-kernel.git remap_file_pages: correctly handle the case of a NULL vm_ops pointer In commit 0b173bc4daa8 ("mm: kill vma flag VM_CAN_NONLINEAR") we replaced the VM_CAN_NONLINEAR test with checking whether the mapping has a '->remap_pages()' vm operation, but there is no guarantee that there it even has a vm_ops pointer at all. Add the appropriate test for NULL vm_ops. Reported-by: Sasha Levin Cc: Konstantin Khlebnikov Cc: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed