diff options
author | Cyrille Pitchen <cyrille.pitchen@free-electrons.com> | 2018-01-30 23:56:51 +0300 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2018-01-31 14:09:42 +0300 |
commit | c6dd8ecf303780a6ac818d61a7b83cfd7e2525d1 (patch) | |
tree | 60c43a10481e97f9f080328d70decbbaaebb816f /drivers/pci/host | |
parent | 3a8f77e48666a39adb3ac4d5ce8261563e039e31 (diff) | |
download | linux-c6dd8ecf303780a6ac818d61a7b83cfd7e2525d1.tar.xz |
PCI: generic: fix missing call of pci_free_resource_list()
Call pci_free_resource_list() from pci_host_common_probe() when probing
fails, as done inside gen_pci_init() when this later function fails.
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@free-electrons.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'drivers/pci/host')
-rw-r--r-- | drivers/pci/host/pci-host-common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/host/pci-host-common.c b/drivers/pci/host/pci-host-common.c index efd904d93562..10e3f5b39499 100644 --- a/drivers/pci/host/pci-host-common.c +++ b/drivers/pci/host/pci-host-common.c @@ -110,6 +110,7 @@ int pci_host_common_probe(struct platform_device *pdev, ret = pci_scan_root_bus_bridge(bridge); if (ret < 0) { dev_err(dev, "Scanning root bridge failed"); + pci_free_resource_list(&resources); return ret; } |