OSDN Git Service

xen_disk: detach the blkdev before bdrv_delete
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 27 Mar 2012 16:03:07 +0000 (16:03 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 27 Mar 2012 16:05:21 +0000 (16:05 +0000)
commit7429f2e1981c6cc77a853e2e88654001bdddd461
treeb6cf21b0d33271f8bc9c251f735ce05bb64209f8
parent028c85f0fffe5d4fdd435e06af4188397acf1cb6
xen_disk: detach the blkdev before bdrv_delete

We need to detach the blkdev from the BlockDriverState before calling
bdrv_delete.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/xen_disk.c