aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/ibmasm/module.c
diff options
context:
space:
mode:
authorJohannes Weiner <[email protected]>2009-01-06 14:40:31 -0800
committerLinus Torvalds <[email protected]>2009-01-06 15:59:10 -0800
commitdcd4a049b9751828c516c59709f3fdf50436df85 (patch)
tree126fe11368da94f0c2e11ed586a870fa1b02f0a6 /drivers/misc/ibmasm/module.c
parent084f71ae5ceeb16734d8ac47559d3c718456a865 (diff)
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. [[email protected]: add sorely-needed comment] Signed-off-by: Johannes Weiner <[email protected]> Reported-by: Akinobu Mita <[email protected]> Cc: Nick Piggin <[email protected]> Cc: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/misc/ibmasm/module.c')
0 files changed, 0 insertions, 0 deletions