]> git.ipfire.org Git - people/arne_f/kernel.git/commit
Btrfs: fix em leak in find_first_block_group
authorJosef Bacik <jbacik@fb.com>
Thu, 18 Aug 2016 19:30:06 +0000 (15:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2019 21:16:06 +0000 (22:16 +0100)
commit4bf414d2ff5758d64d4c785339c92ba22af979c3
tree1a53a50d9f644ab1d75391735db2e0d0b564374c
parenta155ec93222648115e6cdf64a1ca6a929c8a66f1
Btrfs: fix em leak in find_first_block_group

commit 187ee58c62c1d0d238d3dc4835869d33e1869906 upstream.

We need to call free_extent_map() on the em we look up.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/extent-tree.c