PCI: Fix missing bridge dma_ranges resource list cleanup
authorRob Herring <robh@kernel.org>
Tue, 8 Oct 2019 01:23:25 +0000 (20:23 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 14 Oct 2019 15:22:26 +0000 (10:22 -0500)
commit7608158df3ed87a5c938c4a0b91f5b11101a9be1
tree284ad75ad954cf347ae7d199b998fa61f6b1698c
parentfb794a708a71d7c6af55f04cc4ed2d5823fb8b33
PCI: Fix missing bridge dma_ranges resource list cleanup

Commit e80a91ad302b ("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: e80a91ad302b ("PCI: Add dma_ranges window list")
Link: https://lore.kernel.org/r/20191008012325.25700-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Srinath Mannam <srinath.mannam@broadcom.com>
drivers/pci/probe.c