diff options
| author | Wilfred Mallawa <wilfred.mallawa@wdc.com> | 2026-04-17 05:16:30 +0300 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-04-27 11:36:36 +0300 |
| commit | af47a4be6a90c8bfc874f9994ac9c15813b9718b (patch) | |
| tree | 43ac8dba4d77f6248970e61b378d9737335de612 /drivers/gpu/tests/git@radix-linux.su:pub | |
| parent | 592975da8c3ca87b043077e6eafa37665eae7936 (diff) | |
| download | linux-af47a4be6a90c8bfc874f9994ac9c15813b9718b.tar.xz | |
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 'drivers/gpu/tests/git@radix-linux.su:pub')
0 files changed, 0 insertions, 0 deletions
