]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commit
Fix release_drive on unplugged devices (pci_piix3_xen_ide_unplug)
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:22:46 +0000 (14:22 +0000)
commit138906105dd47b9dc6b1e5010e81fc606983dd75
treeb9ae6d0175686a368fb10daf0b97da791433fb8d
parent3b841b4daa66fba7422697df8d4af2e96bba89ad
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