linux/drivers/tee/optee
Yang Yingliang d4fac258d9 optee: smc_abi.c: fix wrong pointer passed to IS_ERR/PTR_ERR()
In optee_smc_do_call_with_arg() there is a code path when the argument
struct for RPC is passed appended to the primary argument struct. When
the address of the RPC struct is retrieved there's an invalid check for
success. It should be 'rpc_arg' pass to IS_ERR/PTR_ERR().

Fixes: ed8faf6c8f ("optee: add OPTEE_SMC_CALL_WITH_RPC_ARG and OPTEE_SMC_CALL_WITH_REGD_ARG")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
[jw: added background to the problem]
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
2022-07-08 09:56:38 +02:00
..
call.c Fix a compiler warning in OP-TEE driver 2022-05-30 14:44:27 +02:00
core.c optee: cache argument shared memory structs 2022-04-25 21:13:05 +02:00
device.c tee: replace tee_shm_alloc() 2022-02-16 07:49:41 +01:00
ffa_abi.c ARM: driver changes for 5.19 2022-05-26 10:32:47 -07:00
Kconfig tee: simplify shm pool handling 2022-02-16 07:49:41 +01:00
Makefile optee: separate notification functions 2021-11-17 14:08:56 +01:00
notif.c optee: Use bitmap_free() to free bitmap 2022-01-24 12:53:34 +01:00
optee_ffa.h optee: add FF-A capability OPTEE_FFA_SEC_CAP_ARG_OFFSET 2022-04-13 07:37:48 +02:00
optee_msg.h optee: add asynchronous notifications 2021-11-17 14:08:57 +01:00
optee_private.h optee: cache argument shared memory structs 2022-04-25 21:13:05 +02:00
optee_rpc_cmd.h optee: separate notification functions 2021-11-17 14:08:56 +01:00
optee_smc.h optee: add OPTEE_SMC_CALL_WITH_RPC_ARG and OPTEE_SMC_CALL_WITH_REGD_ARG 2022-04-13 07:37:20 +02:00
optee_trace.h tee: optee: add invoke_fn tracepoints 2021-03-15 12:04:01 +01:00
rpc.c optee: separate notification functions 2021-11-17 14:08:56 +01:00
smc_abi.c optee: smc_abi.c: fix wrong pointer passed to IS_ERR/PTR_ERR() 2022-07-08 09:56:38 +02:00
supp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00