]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite721b68b66c3f4acf1e4bcc326186b3d090eac27
treebcf60683f81ea37feb55f75eb274b2aa0c0facbf
parent0907cb5f7d82c0606701e18119138360fb2bf608
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