Skip to content

Commit 8bbd727

Browse files
Dan Carpenteralexandrebelloni
authored andcommitted
rtc: optee: fix error code in probe()
Return an error code if kthread_create() fails. Currently the code returns success. Fixes: 6266aea ("rtc: optee: add alarm related rtc ops to optee rtc driver") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/21f1a18008f1bbc8f70d0bd5c05b72fbf5fc9c7d.1758182509.git.dan.carpenter@linaro.org Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent a6b4f79 commit 8bbd727

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/rtc/rtc-optee.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ static int optee_rtc_probe(struct device *dev)
614614
priv, "rtc_alarm_evt");
615615
if (IS_ERR(priv->alarm_task)) {
616616
dev_err(dev, "Failed to create alarm thread\n");
617+
err = PTR_ERR(priv->alarm_task);
617618
goto out_shm;
618619
}
619620

0 commit comments

Comments
 (0)