diff options
| author | Miaohe Lin <[email protected]> | 2020-10-13 16:52:30 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-10-13 18:38:30 -0700 |
| commit | 822bca52ee7eb279acfba261a423ed7ac47d6f73 (patch) | |
| tree | 6f000145cb0d31b5d1abe913ba02bc0031a45fd9 /tools/perf/scripts/python | |
| parent | 7a3d52e45e00dd1cb1f2e81661e53e324e0a7b82 (diff) | |
mm/swapfile.c: fix potential memory leak in sys_swapon
If we failed to drain inode, we would forget to free the swap address
space allocated by init_swap_address_space() above.
Fixes: dc617f29dbe5 ("vfs: don't allow writes to swap files")
Signed-off-by: Miaohe Lin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions