|
@@ -2303,7 +2303,7 @@ static void unmap_region(struct mm_struct *mm,
|
|
|
update_hiwater_rss(mm);
|
|
|
unmap_vmas(&tlb, vma, start, end);
|
|
|
free_pgtables(&tlb, vma, prev ? prev->vm_end : FIRST_USER_ADDRESS,
|
|
|
- next ? next->vm_start : 0);
|
|
|
+ next ? next->vm_start : USER_PGTABLES_CEILING);
|
|
|
tlb_finish_mmu(&tlb, start, end);
|
|
|
}
|
|
|
|
|
@@ -2683,7 +2683,7 @@ void exit_mmap(struct mm_struct *mm)
|
|
|
/* Use -1 here to ensure all VMAs in the mm are unmapped */
|
|
|
unmap_vmas(&tlb, vma, 0, -1);
|
|
|
|
|
|
- free_pgtables(&tlb, vma, FIRST_USER_ADDRESS, 0);
|
|
|
+ free_pgtables(&tlb, vma, FIRST_USER_ADDRESS, USER_PGTABLES_CEILING);
|
|
|
tlb_finish_mmu(&tlb, 0, -1);
|
|
|
|
|
|
/*
|