diff options
author | Johannes Thumshirn <jthumshirn@suse.de> | 2019-07-15 16:16:12 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-17 18:03:36 +0300 |
commit | 373c3b80e459cb57c34381b928588a3794eb5bbd (patch) | |
tree | ff4960f4957800454364e1d0c603b911caafb632 /fs/ocfs2/blockcheck.h | |
parent | bfcea1c661eddabd7b5fee85dd3399bb16712c5a (diff) | |
download | linux-373c3b80e459cb57c34381b928588a3794eb5bbd.tar.xz |
btrfs: don't leak extent_map in btrfs_get_io_geometry()
btrfs_get_io_geometry() calls btrfs_get_chunk_map() to acquire a reference
on a extent_map, but on normal operation it does not drop this reference
anymore.
This leads to excessive kmemleak reports.
Always call free_extent_map(), not just in the error case.
Fixes: 5f1411265e16 ("btrfs: Introduce btrfs_io_geometry infrastructure")
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/ocfs2/blockcheck.h')
0 files changed, 0 insertions, 0 deletions