PCI: rcar: Fix memory leak when no PCIe card is inserted
authorHarunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
Fri, 4 Aug 2017 03:32:55 +0000 (12:32 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 15 Aug 2017 22:51:59 +0000 (17:51 -0500)
commitddd535f1ea3eb27eae71acc21fb0fa4ad2d7535d
treebcf60683f81ea37feb55f75eb274b2aa0c0facbf
parent3c60e01a12461c89db2349b95c77c9eb36fdd439
PCI: rcar: Fix memory leak when no PCIe card is inserted

When no PCIe card is inserted, there is a memory leak as
pci_free_resource_list() is not called before returning.

Signed-off-by: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
drivers/pci/host/pcie-rcar.c