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 optee_rtc_read_alarm()

Return "optee_alarm" instead of "alarm". The "alarm" pointer is a valid
pointer and not an error pointer.

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/9e3718fe1128964907619ad325c0c5f5c1354ace.1758182509.git.dan.carpenter@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Dan Carpenter and committed by
Alexandre Belloni
eb7392a0 8bbd7274

+1 -1
+1 -1
drivers/rtc/rtc-optee.c
··· 299 299 300 300 optee_alarm = tee_shm_get_va(priv->shm, 0); 301 301 if (IS_ERR(optee_alarm)) 302 - return PTR_ERR(alarm); 302 + return PTR_ERR(optee_alarm); 303 303 304 304 if (param[0].u.memref.size != sizeof(*optee_alarm)) 305 305 return -EPROTO;