]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix BUG_ON in btrfs_init_new_device()
authorAnand Jain <anand.jain@oracle.com>
Thu, 28 Sep 2017 06:51:10 +0000 (14:51 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:58 +0000 (12:27 +0100)
commitd8364b8226b430b50fb1f693bc78e93833723bab
tree7eb2a45f134e44642a762da0303b1f829d490eb9
parenta107cf500cfc88b68118f5298ccfc9c6a1878906
btrfs: fix BUG_ON in btrfs_init_new_device()

Instead of BUG_ON return error to the caller. And handle the fail
condition by calling the abort transaction and going through the
error path.

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