From: Liu Bo Date: Mon, 25 May 2015 09:30:14 +0000 (+0800) Subject: Btrfs: add missing free_extent_buffer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8635eda91ee11690bd8f73b2504ee19431fd6380;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Liu Bo Reviewed-by: David Sterba Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index e78ab29f8f1b..076fd7484a82 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -7981,6 +7981,7 @@ walk_down: eb = read_tree_block(root, child_bytenr, child_gen); if (!eb || !extent_buffer_uptodate(eb)) { ret = -EIO; + free_extent_buffer(eb); goto out; }