]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0fcf6c64aae76b991021012fd1d96ef00e045518
tree952f4cda64e34b387976e7321febe6571f37f199
parent3770709e1c6b5a15e9ae5bcb4e74b44535bbccdf
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