From 1defc23832e3fd333940021e864715982f5e76cc Mon Sep 17 00:00:00 2001 From: Jens Wiklander Date: Mon, 14 Dec 2020 13:15:43 +0100 Subject: core: copy ctx_finalize in syscall_cryp_state_copy() Copies the ctx_finalize() when a state is copied using syscall_cryp_state_copy() in order to support proper cleanup of the state once it's removed. Acked-by: Jerome Forissier Acked-by: Etienne Carriere Suggested-by: Tony He Signed-off-by: Jens Wiklander --- core/tee/tee_svc_cryp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'core/tee') diff --git a/core/tee/tee_svc_cryp.c b/core/tee/tee_svc_cryp.c index a586f5ed..ea8921e4 100644 --- a/core/tee/tee_svc_cryp.c +++ b/core/tee/tee_svc_cryp.c @@ -2317,6 +2317,7 @@ TEE_Result syscall_cryp_state_copy(unsigned long dst, unsigned long src) } cs_dst->state = cs_src->state; + cs_dst->ctx_finalize = cs_src->ctx_finalize; return TEE_SUCCESS; } -- cgit v1.2.3