]> git.ipfire.org Git - thirdparty/qemu.git/commit
Fix release_drive on unplugged devices (pci_piix3_xen_ide_unplug)
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 3 Aug 2015 13:56:57 +0000 (13:56 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 4 Aug 2015 17:25:11 +0000 (12:25 -0500)
commitc8bd74d1d509df5dd1afc6b79413f148f2889692
tree25f3ae8538f7a53b5e5061c164ec171f05e8ef1a
parentd1557697fd9efd052ba4289a8da4e35f78431537
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>
(cherry picked from commit 6cd387833d05e8ad31829d97e474dc420625aed9)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ide/piix.c