]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - mm/mprotect.c
powerpc: Fix emulation of mcrf in emulate_step()
[karo-tx-linux.git] / mm / mprotect.c
index 8edd0d576254d4c6a3974a42dd2a27eff17fa8bf..1a8c9ca83e48ec9a998ea0882e24c58dee0d3dd1 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) &&