Commit e05be88
btrfs: fix leaf leak in an error path in btrfs_del_items()
If the call to btrfs_del_leaf() fails we return without decrementing the
extra ref we took on the leaf, therefore leaking it. Fix this by ensuring
we drop the ref count before returning the error.
Fixes: 751a276 ("btrfs: do not BUG_ON() on tree mod log failures at btrfs_del_ptr()")
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent ac0ecda commit e05be88
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4586 | 4586 | | |
4587 | 4587 | | |
4588 | 4588 | | |
| 4589 | + | |
4589 | 4590 | | |
4590 | 4591 | | |
4591 | | - | |
4592 | 4592 | | |
4593 | 4593 | | |
4594 | 4594 | | |
| |||
0 commit comments