mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:cd2b9f0b19("PCI: handle PCI->PCIe bridges as well in alloc_pdev()") Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Roger Pau Monné <roger.pau@citrix.com> master commit:74f984159fmaster date: 2026-02-02 09:06:42 +0100
This commit is contained in:
1 parent
816e71923f
commit
9bdc49871f
1 file changed
+1
@@ -442,6 +442,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);
|
||||
|
||||