Check find_vma return code in make_pages_present()
Subsystems (2)
PATCH 1/1 Check find_vma return code in make_pages_present()
It can return NULL, so check for it.
Spotted with the source checker from Coverity.com.
Signed-off-by Dave Jones <[email protected]>
mm/memory.c +2 -0
@@ -1744,6 +1744,8 @@ int make_pages_present(unsigned long addstruct vm_area_struct * vma; vma =find_vma (current->mm, addr); +if (!vma) +return -1 ; write = (vma->vm_flags &VM_WRITE ) !=0 ;if (addr >= end)BUG ();