aboutsummaryrefslogtreecommitdiff
path: root/tools/firewire
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2019-09-25 14:03:03 +0300
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:51 +0100
commitd3316c8233bb05e0dd855d30aac347bb8ad76ee4 (patch)
treee7690f6062ef838fe7b932aebd90843fa92f9310 /tools/firewire
parent89cbf5f6b6c2a5f0ac7cb83c8b3fd97eadba0d11 (diff)
btrfs: Properly handle backref_in_log retval
This function can return a negative error value if btrfs_search_slot errors for whatever reason or if btrfs_alloc_path runs out of memory. This is currently problemattic because backref_in_log is treated by its callers as if it returns boolean. Fix this by adding proper error handling in callers. That also enables the function to return the direct error code from btrfs_search_slot. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/firewire')
0 files changed, 0 insertions, 0 deletions