public inbox for op-tee@lists.trustedfirmware.org
 help / color / mirror / Atom feed
* [PATCH][next] optee: make read-only array attr static const
@ 2026-01-09 15:44 Colin Ian King via OP-TEE
  2026-01-12 11:26 ` Sumit Garg via OP-TEE
  2026-01-17 14:10 ` David Laight
  0 siblings, 2 replies; 8+ messages in thread
From: Colin Ian King via OP-TEE @ 2026-01-09 15:44 UTC (permalink / raw)
  To: Jens Wiklander, Sumit Garg, op-tee; +Cc: kernel-janitors, linux-kernel

Don't populate the read-only array attr on the stack at run
time, instead make it static const.

Signed-off-by: Colin Ian King <coking@nvidia.com>
---
 drivers/tee/optee/rpc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tee/optee/rpc.c b/drivers/tee/optee/rpc.c
index 97fc5b14db0c..1758eb7e6e8b 100644
--- a/drivers/tee/optee/rpc.c
+++ b/drivers/tee/optee/rpc.c
@@ -43,7 +43,7 @@ static void handle_rpc_func_cmd_i2c_transfer(struct tee_context *ctx,
 	struct i2c_msg msg = { };
 	size_t i;
 	int ret = -EOPNOTSUPP;
-	u8 attr[] = {
+	static const u8 attr[] = {
 		TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INPUT,
 		TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INPUT,
 		TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INOUT,
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-01-17 14:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-09 15:44 [PATCH][next] optee: make read-only array attr static const Colin Ian King via OP-TEE
2026-01-12 11:26 ` Sumit Garg via OP-TEE
2026-01-12 14:46   ` ryan foster
2026-01-12 15:24     ` Colin King via OP-TEE
2026-01-16  9:14       ` Sumit Garg via OP-TEE
2026-01-17 11:33         ` Jens Wiklander
2026-01-12 15:15   ` Dan Carpenter
2026-01-17 14:10 ` David Laight

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox