]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: rcar: Handle rcar_pcie_parse_request_of_pci_ranges() failures
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 7 Dec 2017 10:15:20 +0000 (11:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Mar 2018 10:02:49 +0000 (11:02 +0100)
commit10843b30c3852ef780602b4af1bf68325d9d7c33
treee329b47ffef7cb2017d4d895936403401afa46a4
parent61cbbb4f20d198aacb6a557195919c9b2212ede6
PCI: rcar: Handle rcar_pcie_parse_request_of_pci_ranges() failures

[ Upstream commit 83c75ddd816e979802bd244ad494139f28152921 ]

rcar_pcie_parse_request_of_pci_ranges() can fail and return an error
code, but this is not checked nor handled.

Fix this by adding the missing error handling.

Fixes: 5d2917d469faab72 ("PCI: rcar: Convert to DT resource parsing API")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/host/pcie-rcar.c