diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2015-05-25 12:30:14 +0300 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-06-03 14:03:07 +0300 |
commit | 8635eda91ee11690bd8f73b2504ee19431fd6380 (patch) | |
tree | 61e5f3e1a0dd762007e632cd79360a66ea7b6533 | |
parent | 0c304304feab8a576ed6ba6ec964255d00d2886e (diff) | |
download | linux-8635eda91ee11690bd8f73b2504ee19431fd6380.tar.xz |
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 <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
-rw-r--r-- | fs/btrfs/extent-tree.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |