Skip to content

Commit 187ee58

Browse files
Josef Bacikmasoncl
authored andcommitted
Btrfs: fix em leak in find_first_block_group
We need to call free_extent_map() on the em we look up. Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: Omar Sandoval <[email protected]> Signed-off-by: David Sterba <[email protected]> Signed-off-by: Chris Mason <[email protected]>
1 parent 1423881 commit 187ee58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/btrfs/extent-tree.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9887,6 +9887,7 @@ static int find_first_block_group(struct btrfs_root *root,
98879887
} else {
98889888
ret = 0;
98899889
}
9890+
free_extent_map(em);
98909891
goto out;
98919892
}
98929893
path->slots[0]++;

0 commit comments

Comments
 (0)