diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2015-05-25 17:30:14 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-06-03 04:03:07 -0700 |
commit | 8635eda91ee11690bd8f73b2504ee19431fd6380 (patch) | |
tree | 61e5f3e1a0dd762007e632cd79360a66ea7b6533 /fs/btrfs | |
parent | 0c304304feab8a576ed6ba6ec964255d00d2886e (diff) | |
download | op-kernel-dev-8635eda91ee11690bd8f73b2504ee19431fd6380.zip op-kernel-dev-8635eda91ee11690bd8f73b2504ee19431fd6380.tar.gz |
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>
Diffstat (limited to 'fs/btrfs')
-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 e78ab29..076fd74 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; } |