Btrfs: add missing error check to find_parent_nodes

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
Filipe David Borba Manana 2013-07-31 00:26:35 +01:00 committed by Chris Mason
parent 395927a9d8
commit f5929cd814

View File

@ -935,8 +935,10 @@ again:
} }
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,