Skip to content

Commit 7608158

Browse files
robherringbjorn-helgaas
authored andcommitted
PCI: Fix missing bridge dma_ranges resource list cleanup
Commit e80a91a ("PCI: Add dma_ranges window list") added a dma_ranges resource list, but failed to correctly free the list when devm_pci_alloc_host_bridge() is used. Only the iproc host bridge driver is using the dma_ranges list. Fixes: e80a91a ("PCI: Add dma_ranges window list") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Cc: Srinath Mannam <[email protected]>
1 parent fb794a7 commit 7608158

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pci/probe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ static void devm_pci_release_host_bridge_dev(struct device *dev)
572572
bridge->release_fn(bridge);
573573

574574
pci_free_resource_list(&bridge->windows);
575+
pci_free_resource_list(&bridge->dma_ranges);
575576
}
576577

577578
static void pci_release_host_bridge_dev(struct device *dev)

0 commit comments

Comments
 (0)