projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8057d8a
)
firmware: scmi: Fix clearing variable
author
Francois Berder
<fberder@outlook.fr>
Tue, 10 Oct 2023 17:44:32 +0000
(19:44 +0200)
committer
Tom Rini
<trini@konsulko.com>
Sat, 14 Oct 2023 01:21:07 +0000
(21:21 -0400)
The sess variable in open_channel was not entirely
cleared to zero at the start of this function.
This commit ensures that the entire struct is cleared.
Signed-off-by: Francois Berder <fberder@outlook.fr>
drivers/firmware/scmi/optee_agent.c
patch
|
blob
|
history
diff --git
a/drivers/firmware/scmi/optee_agent.c
b/drivers/firmware/scmi/optee_agent.c
index e3e462774045c4e37fab63db944e9a172c992456..48dbb88a3fb504ff9ca18eab58e36230b3ed6516 100644
(file)
--- a/
drivers/firmware/scmi/optee_agent.c
+++ b/
drivers/firmware/scmi/optee_agent.c
@@
-149,7
+149,7
@@
static int open_channel(struct udevice *dev, struct scmi_optee_channel *chan,
struct tee_param param[1] = { };
int ret;
- memset(sess, 0, sizeof(sess));
+ memset(sess, 0, sizeof(
*
sess));
sess->tee = tee_find_device(NULL, NULL, NULL, NULL);
if (!sess->tee)