diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2020-12-14 13:15:43 +0100 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2020-12-15 11:46:38 +0100 |
commit | 1defc23832e3fd333940021e864715982f5e76cc (patch) | |
tree | dfabf982bfba633fe07c2c7f5ee913c9e9bdbd0e /core/tee | |
parent | 4cfcf34537c9420cc08302795ca217372dafdd71 (diff) |
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 <jerome@forissier.org>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Suggested-by: Tony He <tony.he@armchina.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/tee')
-rw-r--r-- | core/tee/tee_svc_cryp.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |