commit | 7969e77a73164b418da851cbae35cdd6c1b43fee | [log] [tgz] |
---|---|---|
author | Filipe Manana <fdmanana@suse.com> | Fri Jun 17 17:13:36 2016 +0100 |
committer | Filipe Manana <fdmanana@suse.com> | Mon Aug 01 07:23:20 2016 +0100 |
tree | d1d5180d948bf266587333c85e3581b21a7b7cbd | |
parent | 801bec365e0e19f2ba066cd3e25a67dee21b4aae [diff] |
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: Filipe Manana <fdmanana@suse.com>