X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=mm%2Fmprotect.c;h=e8c3938db6faecf6f91c47db790a36271fa8d938;hb=7b8157bedce2a7b5f07f7ec98c96cd6bd64a2a84;hp=a40992610ab6f6c0cbe96f9a9bd43a3fa973fd96;hpb=2335a8366f63a5191b5a2b3c5a05d90fe814654c;p=cascardo%2Flinux.git diff --git a/mm/mprotect.c b/mm/mprotect.c index a40992610ab6..e8c3938db6fa 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c @@ -90,7 +90,7 @@ static inline void change_pmd_range(struct vm_area_struct *vma, pud_t *pud, next = pmd_addr_end(addr, end); if (pmd_trans_huge(*pmd)) { if (next - addr != HPAGE_PMD_SIZE) - split_huge_page_pmd(vma->vm_mm, pmd); + split_huge_page_pmd(vma, addr, pmd); else if (change_huge_pmd(vma, pmd, addr, newprot)) continue; /* fall through */