[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging-4.21] PCI: handle PCI->PCIe bridges as well in free_pdev()



commit 39c90c8deebf4c4d46bcc08d2f1334283ab196f2
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Wed Feb 11 12:16:13 2026 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Feb 11 12:16:13 2026 +0100

    PCI: handle PCI->PCIe bridges as well in free_pdev()
    
    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 <jbeulich@xxxxxxxx>
    Acked-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
    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);
--
generated by git-patchbot for /home/xen/git/xen.git#staging-4.21



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.