]> Git Repo - qemu.git/commitdiff
shpc: fix error propaagation
authorGonglei <[email protected]>
Sat, 15 Nov 2014 10:06:47 +0000 (18:06 +0800)
committerPaolo Bonzini <[email protected]>
Mon, 17 Nov 2014 10:49:19 +0000 (11:49 +0100)
Signed-off-by: Gonglei <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
hw/pci/shpc.c

index 65b2f5103fa0d6c1f81c554d98fdac1860247850..9a390609332170f1910f91d73b1091133705c9a8 100644 (file)
@@ -559,8 +559,9 @@ void shpc_device_hot_unplug_request_cb(HotplugHandler *hotplug_dev,
     uint8_t led;
     int slot;
 
-    shpc_device_hotplug_common(PCI_DEVICE(dev), &slot, shpc, errp);
+    shpc_device_hotplug_common(PCI_DEVICE(dev), &slot, shpc, &local_err);
     if (local_err) {
+        error_propagate(errp, local_err);
         return;
     }
 
This page took 0.026797 seconds and 4 git commands to generate.