Commit f15fb3d
btrfs: fix chunk map leak in btrfs_map_block() after btrfs_chunk_map_num_copies()
Fix a chunk map leak in btrfs_map_block(): if we return early with -EINVAL,
we're not freeing the chunk map that we've just looked up.
Fixes: 0ae653f ("btrfs: reduce chunk_map lookups in btrfs_map_block()")
CC: stable@vger.kernel.org # 6.12+
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>1 parent 587bb33 commit f15fb3d
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6921 | 6921 | | |
6922 | 6922 | | |
6923 | 6923 | | |
6924 | | - | |
6925 | | - | |
| 6924 | + | |
| 6925 | + | |
| 6926 | + | |
| 6927 | + | |
6926 | 6928 | | |
6927 | 6929 | | |
6928 | 6930 | | |
| |||
0 commit comments