diff --git a/mm/mmap.c b/mm/mmap.c index bf2122af94e7a3ffda516efb9c5270537326120d..3c9890e443a3e17fd4c2bfa0741260f650daaa0a 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2681,7 +2681,7 @@ unsigned long mmap_region(struct file *file, unsigned long addr, if (mas_preallocate(&mas, vma, GFP_KERNEL)) { error = -ENOMEM; if (file) - goto unmap_and_free_vma; + goto close_and_free_vma; else goto free_vma; }