summaryrefslogtreecommitdiffstats
path: root/hw/pci-bridge
diff options
context:
space:
mode:
authorJonathan Cameron2022-02-18 11:23:03 +0100
committerMichael S. Tsirkin2022-03-06 11:08:23 +0100
commita105813ac09f5a83137bbec923ee4805335b7242 (patch)
tree7b631f3202d38b43de8d54a6d9d5bcf418729cfc /hw/pci-bridge
parentpci-bridge/xio3130_upstream: Fix error handling (diff)
downloadqemu-a105813ac09f5a83137bbec923ee4805335b7242.tar.gz
qemu-a105813ac09f5a83137bbec923ee4805335b7242.tar.xz
qemu-a105813ac09f5a83137bbec923ee4805335b7242.zip
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>
Diffstat (limited to 'hw/pci-bridge')
-rw-r--r--hw/pci-bridge/xio3130_downstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci-bridge/xio3130_downstream.c b/hw/pci-bridge/xio3130_downstream.c
index 04aae72cd6..080a6613fe 100644
--- a/hw/pci-bridge/xio3130_downstream.c
+++ b/hw/pci-bridge/xio3130_downstream.c
@@ -84,7 +84,7 @@ static void xio3130_downstream_realize(PCIDevice *d, Error **errp)
XIO3130_SSVID_SVID, XIO3130_SSVID_SSID,
errp);
if (rc < 0) {
- goto err_bridge;
+ goto err_msi;
}
rc = pcie_cap_init(d, XIO3130_EXP_OFFSET, PCI_EXP_TYPE_DOWNSTREAM,