Skip to contentSkip to conversation

soc: ti: wkup_m3_ipc: Fix an error code

PATCH New Dan Carpenter 1 participant 1 message Feb 25, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: ti: wkup_m3_ipc: Fix an error code

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')
drivers/soc/ti/wkup_m3_ipc.c +1 -0
index 8823cc8..5bb3760 100644
@@ -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;
 	}