提交 f5929cd8 编写于 作者: F Filipe David Borba Manana 提交者: Chris Mason

Btrfs: add missing error check to find_parent_nodes

Signed-off-by: NFilipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: NJan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: NJosef Bacik <jbacik@fusionio.com>
Signed-off-by: NChris Mason <chris.mason@fusionio.com>
上级 395927a9
...@@ -935,8 +935,10 @@ static int find_parent_nodes(struct btrfs_trans_handle *trans, ...@@ -935,8 +935,10 @@ static int find_parent_nodes(struct btrfs_trans_handle *trans,
} }
ret = find_extent_in_eb(eb, bytenr, ret = find_extent_in_eb(eb, bytenr,
*extent_item_pos, &eie); *extent_item_pos, &eie);
ref->inode_list = eie;
free_extent_buffer(eb); free_extent_buffer(eb);
if (ret < 0)
goto out;
ref->inode_list = eie;
} }
ret = ulist_add_merge(refs, ref->parent, ret = ulist_add_merge(refs, ref->parent,
(uintptr_t)ref->inode_list, (uintptr_t)ref->inode_list,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册