diff options
| author | Mark Harmstone <mark@harmstone.com> | 2026-02-20 12:52:56 +0000 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-02-26 15:03:29 +0100 |
| commit | 54b9395b186a60d1655186c561a505c590654395 (patch) | |
| tree | 48470bdc7ab1aed0d7e65180b2d50d4d591c6926 /include/linux/i2c/git@git.tavy.me:linux.git | |
| parent | f15fb3d41543244d1179f423da4a4832a55bc050 (diff) | |
btrfs: fix chunk map leak in btrfs_map_block() after btrfs_translate_remap()
If the call to btrfs_translate_remap() in btrfs_map_block() returns an
error code, we were leaking the chunk map. Fix it by jumping to out
rather than returning directly.
Reported-by: Chris Mason <clm@fb.com>
Link: https://lore.kernel.org/linux-btrfs/20260125125830.2352988-1-clm@meta.com/
Fixes: 18ba64992871 ("btrfs: redirect I/O for remapped block groups")
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
