[PATCH v2 2/2] PCI: rcar-pcie: Fix memory leak when no PCIe card is inserted

2017-08-03 Thread Harunobu Kurokawa
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...@renesas.com> --- drivers/pci/host/pcie-rcar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/host/pcie-rc

[PATCH v2 2/2] PCI: rcar-pcie: Fix memory leak when no PCIe card is inserted

2017-08-03 Thread Harunobu Kurokawa
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 --- drivers/pci/host/pcie-rcar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index

[PATCH v2 1/2] PCI: rcar: Fix error exit path

2017-08-03 Thread Harunobu Kurokawa
may cause memory leaks. Fix the driver error exit path reinstating the previous correct error exit behaviour. Fixes: 90634e854079 ("PCI: rcar: Convert PCI scan API to pci_scan_root_bus_bridge()") Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Signed-off-by: Haru

[PATCH v2 1/2] PCI: rcar: Fix error exit path

2017-08-03 Thread Harunobu Kurokawa
iver error exit path reinstating the previous correct error exit behaviour. Fixes: 90634e854079 ("PCI: rcar: Convert PCI scan API to pci_scan_root_bus_bridge()") Signed-off-by: Lorenzo Pieralisi Signed-off-by: Harunobu Kurokawa --- drivers/pci/host/pcie-rcar.c | 11 +-

[PATCH v2 0/2] PCI: rcar-pcie: Fix memory leak

2017-08-03 Thread Harunobu Kurokawa
When no PCIe card is inserted, there is a memory leak as pci_free_resource_list is not called before returning. v2: separate the patch to two files. Harunobu Kurokawa (1): PCI: rcar-pcie: Fix memory leak when no PCIe card is inserted Lorenzo Pieralisi (1): PCI: rcar: Fix error exit path

[PATCH v2 0/2] PCI: rcar-pcie: Fix memory leak

2017-08-03 Thread Harunobu Kurokawa
When no PCIe card is inserted, there is a memory leak as pci_free_resource_list is not called before returning. v2: separate the patch to two files. Harunobu Kurokawa (1): PCI: rcar-pcie: Fix memory leak when no PCIe card is inserted Lorenzo Pieralisi (1): PCI: rcar: Fix error exit path

RE: [PATCH] PCI: rcar-pcie: Fix memory leak when no PCIe card is inserted

2017-08-02 Thread HARUNOBU KUROKAWA
Hi > -Original Message- > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > Sent: Wednesday, August 2, 2017 6:03 PM > To: HARUNOBU KUROKAWA <harunobu.kurokawa...@renesas.com> > Cc: ho...@verge.net.au; bhelg...@google.com; linux-...@vger.kernel.

RE: [PATCH] PCI: rcar-pcie: Fix memory leak when no PCIe card is inserted

2017-08-02 Thread HARUNOBU KUROKAWA
Hi > -Original Message- > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > Sent: Wednesday, August 2, 2017 6:03 PM > To: HARUNOBU KUROKAWA > Cc: ho...@verge.net.au; bhelg...@google.com; linux-...@vger.kernel.org; > linux-renesas-...@vger.kernel.o

[PATCH] PCI: rcar-pcie: Fix memory leak when no PCIe card is inserted

2017-08-02 Thread Harunobu Kurokawa
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...@renesas.com> --- drivers/pci/host/pcie-rcar.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/d

[PATCH] PCI: rcar-pcie: Fix memory leak when no PCIe card is inserted

2017-08-02 Thread Harunobu Kurokawa
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 --- drivers/pci/host/pcie-rcar.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci