mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
optee: make read-only array attr static const
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> Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
This commit is contained in:
parent
73503de518
commit
94ea7063fa
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue