summaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2017-09-09 01:13:29 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-09-09 03:26:47 +0200
commitb6b1fd2a6bedd533aeed83924d7be0e944fded9f (patch)
tree406e66f717c827dd6c67d9953a9e7bfefb9c9278 /mm/mempolicy.c
parentmm: kvfree the swap cluster info if the swap file is unsatisfactory (diff)
downloadlinux-b6b1fd2a6bedd533aeed83924d7be0e944fded9f.tar.xz
linux-b6b1fd2a6bedd533aeed83924d7be0e944fded9f.zip
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 <rientjes@google.com> Reviewed-by: "Huang, Ying" <ying.huang@intel.com> Cc: Darrick J. Wong <darrick.wong@oracle.com> Cc: Hugh Dickins <hughd@google.com> Cc: <stable@vger.kernel.org> [4.12+] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mempolicy.c')
0 files changed, 0 insertions, 0 deletions