summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWilfred Mallawa <wilfred.mallawa@wdc.com>2026-04-15 09:45:14 +1000
committerCarlos Maiolino <cem@kernel.org>2026-04-27 10:36:36 +0200
commit592975da8c3ca87b043077e6eafa37665eae7936 (patch)
tree963fe7f8c248ca9762787404923231a3704c78e6 /tools/perf/scripts/python
parent939919ccddfcc379bb82b1f90f732d9a5cb32cc8 (diff)
downloadlinux-592975da8c3ca87b043077e6eafa37665eae7936.tar.gz
linux-592975da8c3ca87b043077e6eafa37665eae7936.zip
xfs: fix memory leak on error in xfs_alloc_zone_info()
Currently, the 0th index of the zi_used_bucket_bitmap array is not freed on error due to the pre-decrement then evaluate semantic of the while loop used in xfs_alloc_zone_info(). Fix it by allowing for the i == 0 case to be covered. Fixes: 080d01c41d44 ("xfs: implement zoned garbage collection") Cc: stable@vger.kernel.org # v6.15 Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com> Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions