mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
pci-bridge/xio3130_downstream: Fix error handling
Wrong goto label, so msi cleanup would not occur if there is an error in the ssvid initialization. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Message-Id: <20220218102303.7061-2-Jonathan.Cameron@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
16ddcbd36c
commit
a105813ac0
|
@ -84,7 +84,7 @@ static void xio3130_downstream_realize(PCIDevice *d, Error **errp)
|
||||||
XIO3130_SSVID_SVID, XIO3130_SSVID_SSID,
|
XIO3130_SSVID_SVID, XIO3130_SSVID_SSID,
|
||||||
errp);
|
errp);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
goto err_bridge;
|
goto err_msi;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = pcie_cap_init(d, XIO3130_EXP_OFFSET, PCI_EXP_TYPE_DOWNSTREAM,
|
rc = pcie_cap_init(d, XIO3130_EXP_OFFSET, PCI_EXP_TYPE_DOWNSTREAM,
|
||||||
|
|
Loading…
Reference in a new issue