aboutsummaryrefslogtreecommitdiffstats
path: root/lib/timerqueue.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <[email protected]>2019-07-15 13:16:12 +0000
committerDavid Sterba <[email protected]>2019-07-17 15:03:36 +0000
commit373c3b80e459cb57c34381b928588a3794eb5bbd (patch)
treeff4960f4957800454364e1d0c603b911caafb632 /lib/timerqueue.c
parentbtrfs: free checksum hash on in close_ctree (diff)
downloadkernel-373c3b80e459cb57c34381b928588a3794eb5bbd.tar.gz
kernel-373c3b80e459cb57c34381b928588a3794eb5bbd.zip
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 <[email protected]> Signed-off-by: Johannes Thumshirn <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions