PCI: generic: fix missing call of pci_free_resource_list()
authorCyrille Pitchen <cyrille.pitchen@free-electrons.com>
Tue, 30 Jan 2018 20:56:51 +0000 (21:56 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 31 Jan 2018 11:09:42 +0000 (11:09 +0000)
commitc6dd8ecf303780a6ac818d61a7b83cfd7e2525d1
tree60c43a10481e97f9f080328d70decbbaaebb816f
parent3a8f77e48666a39adb3ac4d5ce8261563e039e31
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>
drivers/pci/host/pci-host-common.c