Re: [PATCH v2] xfs: fix memory leak on error in xfs_alloc_zone_info()

Carlos Maiolino
2026-04-27T13:26:23Z

On Wed, 15 Apr 2026 09:45:14 +1000, Wilfred Mallawa wrote:
> 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.
>
>

Applied to for-next, thanks!

[1/1] xfs: fix memory leak on error in xfs_alloc_zone_info()
commit: 592975da8c3ca87b043077e6eafa37665eae7936

Best regards,
--
Carlos Maiolino <cem@kernel.org>