mm: hwpoison: change PageHWPoison behavior on hugetlb pages
[linux-2.6-microblaze.git] / mm / mprotect.c
index 8edd0d5..1a8c9ca 100644 (file)
@@ -58,8 +58,6 @@ static unsigned long change_pte_range(struct vm_area_struct *vma, pmd_t *pmd,
         * reading.
         */
        pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl);
-       if (!pte)
-               return 0;
 
        /* Get target node for single threaded private VMAs */
        if (prot_numa && !(vma->vm_flags & VM_SHARED) &&