Skip to content

Commit

Permalink
core: static ta: bugfix copy_in_param()
Browse files Browse the repository at this point in the history
Prior to this patch copy_in_param() for static TA mistook the size of
the mobj as the size of the parameter. This patches fixes that.

Fixes: 0dcfa56 ("core: introduce MOBJ abstraction")
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Tested-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
jenswi-linaro committed Jan 20, 2017
1 parent 3958b8b commit 33be6f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/arch/arm/kernel/static_ta.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static TEE_Result copy_in_param(struct tee_ta_param *param,
if (!va)
return TEE_ERROR_BAD_PARAMETERS;
tee_param[n].memref.buffer = va;
tee_param[n].memref.size = param->u[n].mem.mobj->size;
tee_param[n].memref.size = param->u[n].mem.size;
break;
default:
memset(tee_param + n, 0, sizeof(TEE_Param));
Expand Down

0 comments on commit 33be6f3

Please sign in to comment.