diff options
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |