diff options
| author | Darrick J. Wong <[email protected]> | 2017-09-08 23:13:25 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2017-09-09 01:26:47 +0000 |
| commit | 8606a1a94da5c4e49c0fb28af62d2e75c6747716 (patch) | |
| tree | a9b29670816e60689aa4fa30e2784f4fa3370af0 /lib/string.c | |
| parent | mm/page_alloc.c: apply gfp_allowed_mask before the first allocation attempt (diff) | |
| download | kernel-8606a1a94da5c4e49c0fb28af62d2e75c6747716.tar.gz kernel-8606a1a94da5c4e49c0fb28af62d2e75c6747716.zip | |
mm: kvfree the swap cluster info if the swap file is unsatisfactory
If initializing a small swap file fails because the swap file has a
problem (holes, etc.) then we need to free the cluster info as part of
cleanup. Unfortunately a previous patch changed the code to use kvzalloc
but did not change all the vfree calls to use kvfree.
Found by running generic/357 from xfstests.
Link: http://lkml.kernel.org/r/20170831233515.GR3775@magnolia
Fixes: 54f180d3c181 ("mm, swap: use kvzalloc to allocate some swap data structures")
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: "Huang, Ying" <[email protected]>
Acked-by: David Rientjes <[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]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions
