mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 17:33:01 +00:00
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:
parent
395927a9d8
commit
f5929cd814
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user