]> www.infradead.org Git - users/jedix/linux-maple.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)
committerBob Liu <bob.liu@oracle.com>
Thu, 20 Oct 2016 08:04:20 +0000 (04:04 -0400)
commit04abe368c38c879f37bb4eb6f40688ed2d4879ce
treefd7e84ac9a0ba5c349cc0ea9d3fd2650db868071
parentd69a2e3337fb7c651d7b48d920f8ba8c5fe81ba1
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>
(cherry picked from commit 4e876c2bd37fbb5c37a4554a79cf979d486f0e82)
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Orabug: 24820937

 Conflicts:
drivers/block/xen-blkfront.c
drivers/block/xen-blkfront.c