diff --git a/mm/nommu.c b/mm/nommu.c index 0563fd9003df86b0c8c39844341bfc1847d4dba7..57ae6126b29ad631c1b146538f7067a66b6525ef 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -1217,7 +1217,7 @@ static int do_mmap_private(struct vm_area_struct *vma, return 0; error_free: - free_page_series(region->vm_start, region->vm_end); + free_page_series(region->vm_start, region->vm_top); region->vm_start = vma->vm_start = 0; region->vm_end = vma->vm_end = 0; region->vm_top = 0;