Btrfs: fix em leak in find_first_block_group
PATCH 1/1 Btrfs: fix em leak in find_first_block_group
We need to call free_extent_map() on the em we look up.Btrfs: fix em leak in find_first_block_group
We need to call free_extent_map() on the em we look up.
--- fs/btrfs/extent-tree.c | 1 + 1 file changed, 1 insertion(+)
fs/btrfs/extent-tree.c +1 -0
@@ -9906,6 +9906,7 @@ static int find_first_block_group(struct btrfs_root *root, }else { ret =0 ; } +free_extent_map (em); goto out; } path->slots[0 ]++;
Signature · 1 line
1.8.3.1
Quoted 2 lines · Josef Bacik
We need to call
free_extent_map()on the em we look up.Btrfs: fix em leak infind_first_block_group
Something weird happened with your patch here ^^^
Quoted 3 lines
We need to call
free_extent_map()on the em we look up.Signed-off-by Josef Bacik <[email protected]>
Quoted 18 lines
--- fs/btrfs/extent-tree.c | 1 + 1 file changed, 1 insertion(+)fs/btrfs/extent-tree.c +1
-0@@ -9906,6 +9906,7 @@ static int find_first_block_group(struct btrfs_root *root, }else { ret =0 ; } +free_extent_map (em); goto out; } path->slots[0 ]++;Signature · 1 line
1.8.3.1
Signature · 1 line
Omar
Quoted 5 lines · Omar Sandoval
Quoted 2 lines · Josef Bacik
We need to call
free_extent_map()on the em we look up.Btrfs: fix em leak infind_first_block_groupSomething weird happened with your patch here ^^^
Fixed.
Quoted 4 lines · Josef Bacik
We need to call
free_extent_map()on the em we look up.Btrfs: fix em leak infind_first_block_groupWe need to call
free_extent_map()on the em we look up.
Thanks for fixing it.
Thanks,
-liubo
Quoted 25 lines
Signed-off-by Josef Bacik <[email protected]>--- fs/btrfs/extent-tree.c | 1 + 1 file changed, 1 insertion(+)fs/btrfs/extent-tree.c +1
-0@@ -9906,6 +9906,7 @@ static int find_first_block_group(struct btrfs_root *root, }else { ret =0 ; } +free_extent_map (em); goto out; } path->slots[0 ]++;Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html