aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mmap.c')
-rw-r--r--mm/mmap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index 1f97d8aa9b05..a910c045cfd4 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -2090,6 +2090,9 @@ void exit_mmap(struct mm_struct *mm)
2090 arch_exit_mmap(mm); 2090 arch_exit_mmap(mm);
2091 mmu_notifier_release(mm); 2091 mmu_notifier_release(mm);
2092 2092
2093 if (!mm->mmap) /* Can happen if dup_mmap() received an OOM */
2094 return;
2095
2093 if (mm->locked_vm) { 2096 if (mm->locked_vm) {
2094 vma = mm->mmap; 2097 vma = mm->mmap;
2095 while (vma) { 2098 while (vma) {