DORMANTno replies

[patch] soc: ti: wkup_m3_ipc: Fix an error code

From: Dan Carpenter <hidden>
Date: 2016-02-25 21:31:16
Also in: kernel-janitors
Subsystem: the rest, ti keystone multicore navigator drivers · Maintainers: Linus Torvalds, Nishanth Menon, Santosh Shilimkar

We accidentally return success if we can't load firmware but we intended
to return a negative error code.

Fixes: cdd5de500b2c ('soc: ti: Add wkup_m3_ipc driver')
Signed-off-by: Dan Carpenter <redacted>
diff --git a/drivers/soc/ti/wkup_m3_ipc.c b/drivers/soc/ti/wkup_m3_ipc.c
index 8823cc8..5bb3760 100644
--- a/drivers/soc/ti/wkup_m3_ipc.c
+++ b/drivers/soc/ti/wkup_m3_ipc.c
@@ -459,6 +459,7 @@ static int wkup_m3_ipc_probe(struct platform_device *pdev)
 
 	if (IS_ERR(task)) {
 		dev_err(dev, "can't create rproc_boot thread\n");
+		ret = PTR_ERR(task);
 		goto err_put_rproc;
 	}
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help