diff options
author | Oleg Nesterov <[email protected]> | 2015-09-04 15:48:01 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-09-04 16:54:41 -0700 |
commit | df1eab303c836c98a79de427aa1c7d6812acaaa9 (patch) | |
tree | 27998965226fc9e68cde07fe06f9866c66daba68 /lib/mpi/mpiutil.c | |
parent | 31aafb45f4e1c34e4aba37c150ae4e74880b46ed (diff) |
mremap: don't leak new_vma if f_op->mremap() fails
move_vma() can't just return if f_op->mremap() fails, we should unmap the
new vma like we do if move_page_tables() fails. To avoid the code
duplication this patch moves the "move entries back" under the new "if
(err)" branch.
Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: David Rientjes <[email protected]>
Cc: Benjamin LaHaise <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Jeff Moyer <[email protected]>
Cc: Kirill Shutemov <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Cc: Laurent Dufour <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions