xen-blkfront: free resources if xlvbd_alloc_gendisk fails
authorBob Liu <bob.liu@oracle.com>
Wed, 27 Jul 2016 09:42:04 +0000 (17:42 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 19 Aug 2016 16:31:59 +0000 (12:31 -0400)
commit4e876c2bd37fbb5c37a4554a79cf979d486f0e82
tree952f4cda64e34b387976e7321febe6571f37f199
parent172335ada40ce26806e514c83a504b45c14a4139
xen-blkfront: free resources if xlvbd_alloc_gendisk fails

Current code forgets to free resources in the failure path of
xlvbd_alloc_gendisk(), this patch fix it.

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c