]> xenbits.xensource.com Git - libvirt.git/commit
qemu: hotplug: Properly handle errors in qemuDomainWaitForDeviceRemoval
authorPeter Krempa <pkrempa@redhat.com>
Mon, 4 Apr 2016 13:27:25 +0000 (15:27 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 13 Apr 2016 11:26:29 +0000 (13:26 +0200)
commit65b390ad1b646f8ea04abfde01bcff5dc172ba3d
treeda4d6e6252514f0d7147a24783d7c48e80bac272
parent786bc2511a945a214f3f8ff645ea4333851430c5
qemu: hotplug: Properly handle errors in qemuDomainWaitForDeviceRemoval

Callers ignore if this function returns -1 and continue as though the
DEVICE_DELETED event was not received. Since we can't be sure that the
event was not received we should behave as if the event was not
supported and remove the device definition right away. The error
fortunately won't really happen here.
src/qemu/qemu_hotplug.c