]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: Need to return status of RNG device removal
authorLuyao Huang <lhuang@redhat.com>
Sun, 31 May 2015 13:27:25 +0000 (21:27 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 2 Jun 2015 18:03:48 +0000 (14:03 -0400)
Commit id '862473fa' neglected to return the status from the
qemuDomainRemoveRNGDevice call in qemuDomainRemoveDevice causing
the function to always fail when receiving an RNG device unplug
event. Additionally the domain status/state would not be updated
in the processDeviceDeletedEvent path.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
src/qemu/qemu_hotplug.c

index 170768b3bfb1c3871e962d2bb42a18d4e33358e7..f5967308948963191a1c4377ca781b086020db48 100644 (file)
@@ -3271,7 +3271,7 @@ qemuDomainRemoveDevice(virQEMUDriverPtr driver,
         ret = qemuDomainRemoveChrDevice(driver, vm, dev->data.chr);
         break;
     case VIR_DOMAIN_DEVICE_RNG:
-        qemuDomainRemoveRNGDevice(driver, vm, dev->data.rng);
+        ret = qemuDomainRemoveRNGDevice(driver, vm, dev->data.rng);
         break;
 
     case VIR_DOMAIN_DEVICE_MEMORY: