From: Gustavo A. R. Silva Date: Fri, 30 Jun 2017 07:00:54 +0000 (-0500) Subject: crypto: omap-aes - fix error return code in omap_aes_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=62c58f8d6883e06e113d4a8f22c37143931e8857;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git crypto: omap-aes - fix error return code in omap_aes_probe() Propagate the return value of platform_get_irq on failure. Signed-off-by: Gustavo A. R. Silva Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index 5120a17731d0..c376a3ee7c2c 100644 --- a/drivers/crypto/omap-aes.c +++ b/drivers/crypto/omap-aes.c @@ -1095,6 +1095,7 @@ static int omap_aes_probe(struct platform_device *pdev) irq = platform_get_irq(pdev, 0); if (irq < 0) { dev_err(dev, "can't get IRQ resource\n"); + err = irq; goto err_irq; }