PCI: rcar: Fix error exit path
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 4 Aug 2017 03:32:54 +0000 (12:32 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 15 Aug 2017 22:51:19 +0000 (17:51 -0500)
commit3c60e01a12461c89db2349b95c77c9eb36fdd439
tree065c50827b2ae7ecabf8775ae5533296ec15d8b4
parent16f73eb02d7e1765ccab3d2018e0bd98eb93d973
PCI: rcar: Fix error exit path

Commit 90634e854079 ("PCI: rcar: Convert PCI scan API to
pci_scan_root_bus_bridge()") converted PCI root bus scan API to the new
pci_scan_root_bus_bridge() API; in the process some error paths were not
updated correctly which 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.pieralisi@arm.com>
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