diff options
author | Gonglei <arei.gonglei@huawei.com> | 2014-11-15 18:06:47 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-11-17 11:49:19 +0100 |
commit | 0e8b439ae57ee3c46fb95e1775ea038d34496346 (patch) | |
tree | 6faeddc28afe1d870a7af9682d1fea443f70ac21 /hw/pci/shpc.c | |
parent | 86d10328a019b19838de3f7964a9da16af3a5073 (diff) | |
download | qemu-0e8b439ae57ee3c46fb95e1775ea038d34496346.zip qemu-0e8b439ae57ee3c46fb95e1775ea038d34496346.tar.gz qemu-0e8b439ae57ee3c46fb95e1775ea038d34496346.tar.bz2 |
shpc: fix error propaagation
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/pci/shpc.c')
-rw-r--r-- | hw/pci/shpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ 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; } |