mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 18:53:52 +08:00
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 <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>
This commit is contained in:
parent
1423881941
commit
187ee58c62
@ -9887,6 +9887,7 @@ static int find_first_block_group(struct btrfs_root *root,
|
|||||||
} else {
|
} else {
|
||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
|
free_extent_map(em);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
path->slots[0]++;
|
path->slots[0]++;
|
||||||
|
Loading…
Reference in New Issue
Block a user