commit | b6b1fd2a6bedd533aeed83924d7be0e944fded9f | [log] [tgz] |
---|---|---|
author | David Rientjes <[email protected]> | Fri Sep 08 16:13:29 2017 -0700 |
committer | Linus Torvalds <[email protected]> | Fri Sep 08 18:26:47 2017 -0700 |
tree | 406e66f717c827dd6c67d9953a9e7bfefb9c9278 | |
parent | 8606a1a94da5c4e49c0fb28af62d2e75c6747716 [diff] |
mm/swapfile.c: fix swapon frontswap_map memory leak on error Free frontswap_map if an error is encountered before enable_swap_info(). Signed-off-by: David Rientjes <[email protected]> Reviewed-by: "Huang, Ying" <[email protected]> Cc: Darrick J. Wong <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: <[email protected]> [4.12+] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>