btrfs: use proper error values on allocation failure in clone_fs_devices
authorAnand Jain <anand.jain@oracle.com>
Tue, 27 Aug 2019 07:40:45 +0000 (15:40 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:14 +0000 (14:59 +0200)
commitd2979aa25fc8de6498d906ae6b46b028457d6400
tree8eec1aae38c552cc0d6f268e550baf4a42fd3252
parenta06dee4d7eb67c35e7b7da0b84216424d60a87d3
btrfs: use proper error values on allocation failure in clone_fs_devices

Fix the fake ENOMEM return error code to the actual error in
clone_fs_devices().

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c