projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bbd727
)
rtc: optee: Fix error code in optee_rtc_read_alarm()
author
Dan Carpenter
<dan.carpenter@linaro.org>
Thu, 18 Sep 2025 09:49:48 +0000
(12:49 +0300)
committer
Alexandre Belloni
<alexandre.belloni@bootlin.com>
Sun, 5 Oct 2025 18:52:40 +0000
(20:52 +0200)
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>
drivers/rtc/rtc-optee.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-optee.c
b/drivers/rtc/rtc-optee.c
index
7b44d77
..
3d5662a
100644
(file)
--- a/
drivers/rtc/rtc-optee.c
+++ b/
drivers/rtc/rtc-optee.c
@@
-299,7
+299,7
@@
static int optee_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm)
optee_alarm = tee_shm_get_va(priv->shm, 0);
if (IS_ERR(optee_alarm))
- return PTR_ERR(alarm);
+ return PTR_ERR(
optee_
alarm);
if (param[0].u.memref.size != sizeof(*optee_alarm))
return -EPROTO;