Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rtc: optee: fix error code in probe()

Return an error code if kthread_create() fails. Currently the code
returns success.

Fixes: 6266aea864fa ("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>

authored by

Dan Carpenter and committed by
Alexandre Belloni
8bbd7274 a6b4f791

+1
+1
drivers/rtc/rtc-optee.c
··· 614 614 priv, "rtc_alarm_evt"); 615 615 if (IS_ERR(priv->alarm_task)) { 616 616 dev_err(dev, "Failed to create alarm thread\n"); 617 + err = PTR_ERR(priv->alarm_task); 617 618 goto out_shm; 618 619 } 619 620