summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-06-28 14:52:16 +0800
committerJens Wiklander <jens.wiklander@linaro.org>2022-07-08 09:56:38 +0200
commitd4fac258d971bead9a6b5c5ebe2f0e415d05d110 (patch)
treeda7b45bf53bb774259ba15bdec966bdec938af73 /.clang-format
parentb13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3 (diff)
downloadlwn-d4fac258d971bead9a6b5c5ebe2f0e415d05d110.tar.gz
lwn-d4fac258d971bead9a6b5c5ebe2f0e415d05d110.zip
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: ed8faf6c8f8c ("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>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions