From: Wei Yongjun Date: Mon, 26 Mar 2018 14:43:09 +0000 (+0000) Subject: powerpc/4xx: Fix error return code in ppc4xx_msi_probe() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9a2c1d31e6910b9d5e0205f9167d0b1abeea1413;p=openwrt%2Fstaging%2Fblogic.git powerpc/4xx: Fix error return code in ppc4xx_msi_probe() Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun [mpe: Add missing ';' to make it compile] Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/platforms/4xx/msi.c b/arch/powerpc/platforms/4xx/msi.c index 4b859c840ea9..96aaae678928 100644 --- a/arch/powerpc/platforms/4xx/msi.c +++ b/arch/powerpc/platforms/4xx/msi.c @@ -241,7 +241,8 @@ static int ppc4xx_msi_probe(struct platform_device *dev) if (!msi_irqs) return -ENODEV; - if (ppc4xx_setup_pcieh_hw(dev, res, msi)) + err = ppc4xx_setup_pcieh_hw(dev, res, msi); + if (err) goto error_out; err = ppc4xx_msi_init_allocator(dev, msi);