X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Fmprotect.c;h=ac64860a60a46f577430aa3ccde06b4db44b87e6;hb=3535183db06e2c7729ab145b55e80d570c098940;hp=5a688a2756bec54435adbd5f3c13a33fbdd2c11e;hpb=0a9d59a2461477bd9ed143c01af9df3f8f00fa81;p=pandora-kernel.git diff --git a/mm/mprotect.c b/mm/mprotect.c index 5a688a2756be..ac64860a60a4 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c @@ -92,13 +92,15 @@ static inline void change_pmd_range(struct vm_area_struct *vma, pud_t *pud, if (next - addr != HPAGE_PMD_SIZE) split_huge_page_pmd(vma->vm_mm, pmd); else if (change_huge_pmd(vma, pmd, addr, newprot)) - continue; + goto next; /* fall through */ } if (pmd_none_or_clear_bad(pmd)) - continue; + goto next; change_pte_range(vma->vm_mm, pmd, addr, next, newprot, dirty_accountable); +next: + cond_resched(); } while (pmd++, addr = next, addr != end); }