From 39c90c8deebf4c4d46bcc08d2f1334283ab196f2 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Wed, 11 Feb 2026 12:16:13 +0100 Subject: [PATCH] PCI: handle PCI->PCIe bridges as well in free_pdev() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't know how I managed to overlook the freeing side when adding the case to alloc_pdev(). Fixes: cd2b9f0b1986 ("PCI: handle PCI->PCIe bridges as well in alloc_pdev()") Signed-off-by: Jan Beulich Acked-by: Roger Pau Monné master commit: 74f984159f0065aa5c7a395ef04263f162b87e62 master date: 2026-02-02 09:06:42 +0100 --- xen/drivers/passthrough/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index fc2372c523..7858c9418c 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -436,6 +436,7 @@ static void free_pdev(struct pci_seg *pseg, struct pci_dev *pdev) unsigned long flags; case DEV_TYPE_PCIe2PCI_BRIDGE: + case DEV_TYPE_PCI2PCIe_BRIDGE: case DEV_TYPE_LEGACY_PCI_BRIDGE: sec_bus = pci_conf_read8(pdev->sbdf, PCI_SECONDARY_BUS); sub_bus = pci_conf_read8(pdev->sbdf, PCI_SUBORDINATE_BUS);