commit | 0e8b439ae57ee3c46fb95e1775ea038d34496346 | [log] [tgz] |
---|---|---|
author | Gonglei <arei.gonglei@huawei.com> | Sat Nov 15 18:06:47 2014 +0800 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Mon Nov 17 11:49:19 2014 +0100 |
tree | 6faeddc28afe1d870a7af9682d1fea443f70ac21 | |
parent | 86d10328a019b19838de3f7964a9da16af3a5073 [diff] |
shpc: fix error propaagation Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
diff --git a/hw/pci/shpc.c b/hw/pci/shpc.c index 65b2f51..9a39060 100644 --- a/hw/pci/shpc.c +++ b/hw/pci/shpc.c
@@ -559,8 +559,9 @@ 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; }