From: Gonglei Date: Sat, 15 Nov 2014 10:06:47 +0000 (+0800) Subject: shpc: fix error propaagation X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0e8b439ae57ee3c46fb95e1775ea038d34496346;p=qemu.git shpc: fix error propaagation Signed-off-by: Gonglei Signed-off-by: Paolo Bonzini --- diff --git a/hw/pci/shpc.c b/hw/pci/shpc.c index 65b2f5103f..9a39060933 100644 --- a/hw/pci/shpc.c +++ b/hw/pci/shpc.c @@ -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; }