diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2009-01-06 23:40:31 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-07 00:59:10 +0100 |
commit | dcd4a049b9751828c516c59709f3fdf50436df85 (patch) | |
tree | 126fe11368da94f0c2e11ed586a870fa1b02f0a6 /virt/kvm/kvm_trace.c | |
parent | mm: kill page_queue_congested() (diff) | |
download | linux-dcd4a049b9751828c516c59709f3fdf50436df85.tar.xz linux-dcd4a049b9751828c516c59709f3fdf50436df85.zip |
mm: check for no mmaps in exit_mmap()
When dup_mmap() ooms we can end up with mm->mmap == NULL. The error
path does mmput() and unmap_vmas() gets a NULL vma which it
dereferences.
In exit_mmap() there is nothing to do at all for this case, we can
cancel the callpath right there.
[akpm@linux-foundation.org: add sorely-needed comment]
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reported-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'virt/kvm/kvm_trace.c')
0 files changed, 0 insertions, 0 deletions