diff options
author | Filipe Manana <fdmanana@suse.com> | 2025-03-11 18:50:50 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-03-18 22:35:51 +0300 |
commit | 009ca358486ded9b4822eddb924009b6848d7271 (patch) | |
tree | 3c86e37ae903083fef9e3ef0de065e1204db6ead /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0497dfba98c00edbc7af12d53c0b1138eb318bf7 (diff) | |
download | linux-009ca358486ded9b4822eddb924009b6848d7271.tar.xz |
btrfs: tests: fix chunk map leak after failure to add it to the tree
If we fail to add the chunk map to the fs mapping tree we exit
test_rmap_block() without freeing the chunk map. Fix this by adding a
call to btrfs_free_chunk_map() before exiting the test function if the
call to btrfs_add_chunk_map() failed.
Fixes: 7dc66abb5a47 ("btrfs: use a dedicated data structure for chunk maps")
CC: stable@vger.kernel.org # 6.12+
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions