aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mmap.c')
-rw-r--r--mm/mmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index 3f758c7f4c81..22e1a0b2f70c 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1293,6 +1293,8 @@ munmap_back:
1293 pgoff = vma->vm_pgoff; 1293 pgoff = vma->vm_pgoff;
1294 vm_flags = vma->vm_flags; 1294 vm_flags = vma->vm_flags;
1295 } else if (vm_flags & VM_SHARED) { 1295 } else if (vm_flags & VM_SHARED) {
1296 if (unlikely(vm_flags & (VM_GROWSDOWN|VM_GROWSUP)))
1297 goto free_vma;
1296 error = shmem_zero_setup(vma); 1298 error = shmem_zero_setup(vma);
1297 if (error) 1299 if (error)
1298 goto free_vma; 1300 goto free_vma;