]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbb9b1f6c89bb12f6e92c9c3e666db1b3f00e7a12
tree8eec1aae38c552cc0d6f268e550baf4a42fd3252
parent95c2c72f808d57a216cca3547d2c2e8c1d81955f
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