Fix release_drive on unplugged devices (pci_piix3_xen_ide_unplug)
commit6cd387833d05e8ad31829d97e474dc420625aed9
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 3 Aug 2015 13:56:57 +0000 (3 13:56 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 3 Aug 2015 14:27:12 +0000 (3 14:27 +0000)
tree94b748ae269b653d34eadfa05866c6c9eb3cda5d
parent2a3612ccc1fa9cea77bd193afbfe21c77e7e91ef
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