diff options
| author | 2026-04-17 12:16:30 +1000 | |
|---|---|---|
| committer | 2026-04-27 10:36:36 +0200 | |
| commit | af47a4be6a90c8bfc874f9994ac9c15813b9718b (patch) | |
| tree | 43ac8dba4d77f6248970e61b378d9737335de612 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | xfs: fix memory leak on error in xfs_alloc_zone_info() (diff) | |
xfs: fix memory leak for data allocated by xfs_zone_gc_data_alloc()
In xfs_zone_gc_mount(), on error, a struct xfs_zone_gc_data allocated
with xfs_zone_gc_data_alloc() is freed with kfree(), however, this
doesn't free the underlying folios or the rmap_irecs.
Use xfs_zone_gc_data_free() to correctly free this memory.
Fixes: 080d01c41d44 ("xfs: implement zoned garbage collection")
Cc: stable@vger.kernel.org # v6.15
Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
