Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddd535f1 authored by Harunobu Kurokawa's avatar Harunobu Kurokawa Committed by Bjorn Helgaas
Browse files

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: default avatarHarunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 3c60e01a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1196,6 +1196,7 @@ static int rcar_pcie_probe(struct platform_device *pdev)

err_free_bridge:
	pci_free_host_bridge(bridge);
	pci_free_resource_list(&pcie->resources);

	return err;
}