mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]>
This commit is contained in:
parent
3a8f77e486
commit
c6dd8ecf30
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue