aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2023-07-03 12:03:21 +0100
committerDavid Sterba <[email protected]>2023-07-18 03:12:57 +0200
commitf1a07c2b4e2c473ec322b8b9ece071b8c88a3512 (patch)
tree9d9e98e292d26f395a0abe7a1b3d366cd1a7cebb /rust/helpers.c
parent0657b20c5a76c938612f8409735a8830d257866e (diff)
btrfs: zoned: fix memory leak after finding block group with super blocks
At exclude_super_stripes(), if we happen to find a block group that has super blocks mapped to it and we are on a zoned filesystem, we error out as this is not supposed to happen, indicating either a bug or maybe some memory corruption for example. However we are exiting the function without freeing the memory allocated for the logical address of the super blocks. Fix this by freeing the logical address. Fixes: 12659251ca5d ("btrfs: implement log-structured superblock for ZONED mode") CC: [email protected] # 5.10+ Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Anand Jain <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions