Skip to content

Commit 2dc94f0

Browse files
committed
Merge tag 'tee-fixes-for-v5.19' of https://git.linaro.org/people/jens.wiklander/linux-tee into arm/fixes
Fixes for TEE subsystem A fix for the recently merged commit ed8faf6 ("optee: add OPTEE_SMC_CALL_WITH_RPC_ARG and OPTEE_SMC_CALL_WITH_REGD_ARG"). Two small fixes in comment, repeated words etc. * tag 'tee-fixes-for-v5.19' of https://git.linaro.org/people/jens.wiklander/linux-tee: tee: tee_get_drvdata(): fix description of return value optee: Remove duplicate 'of' in two places. optee: smc_abi.c: fix wrong pointer passed to IS_ERR/PTR_ERR() Link: https://lore.kernel.org/r/20220708134607.GA901814@jade Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents a902fa8 + e5ce073 commit 2dc94f0

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/tee/optee/optee_smc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ struct optee_smc_call_get_os_revision_result {
189189
* Have config return register usage:
190190
* a0 OPTEE_SMC_RETURN_OK
191191
* a1 Physical address of start of SHM
192-
* a2 Size of of SHM
192+
* a2 Size of SHM
193193
* a3 Cache settings of memory, as defined by the
194194
* OPTEE_SMC_SHM_* values above
195195
* a4-7 Preserved

drivers/tee/optee/smc_abi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,8 @@ static int optee_smc_do_call_with_arg(struct tee_context *ctx,
884884

885885
rpc_arg_offs = OPTEE_MSG_GET_ARG_SIZE(arg->num_params);
886886
rpc_arg = tee_shm_get_va(shm, offs + rpc_arg_offs);
887-
if (IS_ERR(arg))
888-
return PTR_ERR(arg);
887+
if (IS_ERR(rpc_arg))
888+
return PTR_ERR(rpc_arg);
889889
}
890890

891891
if (rpc_arg && tee_shm_is_dynamic(shm)) {

drivers/tee/tee_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ EXPORT_SYMBOL_GPL(tee_device_unregister);
10731073
/**
10741074
* tee_get_drvdata() - Return driver_data pointer
10751075
* @teedev: Device containing the driver_data pointer
1076-
* @returns the driver_data pointer supplied to tee_register().
1076+
* @returns the driver_data pointer supplied to tee_device_alloc().
10771077
*/
10781078
void *tee_get_drvdata(struct tee_device *teedev)
10791079
{

0 commit comments

Comments
 (0)