mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
shpc: fix error propaagation
Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
86d10328a0
commit
0e8b439ae5
1 changed files with 2 additions and 1 deletions
|
@ -559,8 +559,9 @@ void shpc_device_hot_unplug_request_cb(HotplugHandler *hotplug_dev,
|
||||||
uint8_t led;
|
uint8_t led;
|
||||||
int slot;
|
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) {
|
if (local_err) {
|
||||||
|
error_propagate(errp, local_err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue