Thread (2 messages) flat view 2 messages, 2 authors, 2017-07-18
STALE3357d

[PATCH] crypto: omap-aes: fix error return code in omap_aes_probe()

From: Gustavo A. R. Silva <hidden>
Date: 2017-06-30 07:01:08
Also in: lkml
Subsystem: crypto api, the rest · Maintainers: Herbert Xu, "David S. Miller", Linus Torvalds

Propagate the return value of platform_get_irq on failure.

Signed-off-by: Gustavo A. R. Silva <redacted>
---
 drivers/crypto/omap-aes.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c
index 5120a17..c376a3e 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;
 		}
 
-- 
2.5.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help