]> xenbits.xensource.com Git - qemu-upstream-4.4-testing.git/commit
Fix release_drive on unplugged devices (pci_piix3_xen_ide_unplug) qemu-xen-4.4.3
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 3 Aug 2015 14:07:02 +0000 (14:07 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 3 Aug 2015 14:12:15 +0000 (14:12 +0000)
commit0fc147387f0b683d2dfefec7b1af569f17b72e9c
treee01cafc41ecdacb2819903c5ab66718fd49a0616
parentdfaedc85570ebdbbeee7d71b3191cf60601740bd
Fix release_drive on unplugged devices (pci_piix3_xen_ide_unplug)

pci_piix3_xen_ide_unplug should completely unhook the unplugged
IDEDevice from the corresponding BlockBackend, otherwise the next call
to release_drive will try to detach the drive again.

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/ide/piix.c