Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8635eda9 authored by Liu Bo's avatar Liu Bo Committed by Chris Mason
Browse files

Btrfs: add missing free_extent_buffer



read_tree_block may take a reference on the 'eb', a following
free_extent_buffer is necessary.

Signed-off-by: default avatarLiu Bo <bo.li.liu@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.cz>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 0c304304
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7981,6 +7981,7 @@ static int account_shared_subtree(struct btrfs_trans_handle *trans,
			eb = read_tree_block(root, child_bytenr, child_gen);
			if (!eb || !extent_buffer_uptodate(eb)) {
				ret = -EIO;
				free_extent_buffer(eb);
				goto out;
			}