Skip to content
Commit 7969e77a authored by Filipe Manana's avatar Filipe Manana
Browse files

Btrfs: send, add missing error check for calls to path_loop()



The function path_loop() can return a negative integer, signaling an
error, 0 if there's no path loop and 1 if there's a path loop. We were
treating any non zero values as meaning that a path loop exists. Fix
this by explicitly checking for errors and gracefully return them to
user space.

Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
parent 801bec36
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment