Searched hist:dcd4a049b9751828c516c59709f3fdf50436df85 (Results 1 – 1 of 1) sorted by relevance
/linux/mm/ |
H A D | mmap.c | diff dcd4a049b9751828c516c59709f3fdf50436df85 Tue Jan 06 23:40:31 CET 2009 Johannes Weiner <hannes@cmpxchg.org> 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>
|