X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=mm%2Fmprotect.c;h=1a8c9ca83e48ec9a998ea0882e24c58dee0d3dd1;hb=6a37e94009b1a76d415b2759755f5cc7854c4ff6;hp=8edd0d576254d4c6a3974a42dd2a27eff17fa8bf;hpb=593043d35ddff8ab033546c2a89bb1d4080d03e1;p=karo-tx-linux.git diff --git a/mm/mprotect.c b/mm/mprotect.c index 8edd0d576254..1a8c9ca83e48 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c @@ -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) &&