summaryrefslogtreecommitdiff
path: root/fs/btrfs/extent_map.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2019-01-08 11:42:01 +0000
committerDavid Sterba <dsterba@suse.com>2019-02-25 14:13:21 +0100
commitd00c2d9c76975d70089418dc1447b51da3a6a118 (patch)
tree4ab81a974750e3ae29b14866a0e936edf3afd278 /fs/btrfs/extent_map.c
parentd3a53286c191c3d598eae09a68bb99a0db4e2466 (diff)
Btrfs: do not overwrite error return value in the balance ioctl
If the call to btrfs_balance() failed we would overwrite the error returned to user space with -EFAULT if the call to copy_to_user() failed as well. Fix that by calling copy_to_user() only if btrfs_balance() returned success or was canceled. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_map.c')
0 files changed, 0 insertions, 0 deletions