diff mbox series

[PULL,11/19] Revert "pcie_sriov: Release VFs failed to realize"

Message ID 9bab08da4e932e9c95919951792ae09d0a59f726.1722508478.git.mst@redhat.com (mailing list archive)
State New, archived
Headers show
Series [PULL,01/19] virtio-rng: block max-bytes=0 | expand

Commit Message

Michael S. Tsirkin Aug. 1, 2024, 10:36 a.m. UTC
This reverts commit 1a9bf009012e590cb166a4a9bae4bc18fb084d76.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 hw/pci/pcie_sriov.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/hw/pci/pcie_sriov.c b/hw/pci/pcie_sriov.c
index 9bd7f8acc3..faadb0d2ea 100644
--- a/hw/pci/pcie_sriov.c
+++ b/hw/pci/pcie_sriov.c
@@ -99,8 +99,6 @@  bool pcie_sriov_pf_init(PCIDevice *dev, uint16_t offset,
         vf->exp.sriov_vf.vf_number = i;
 
         if (!qdev_realize(&vf->qdev, bus, errp)) {
-            object_unparent(OBJECT(vf));
-            object_unref(vf);
             unparent_vfs(dev, i);
             return false;
         }