commit | 2cc2572fb4dc09f03d0ee4249fc50b7906d74707 | [log] [tgz] |
---|---|---|
author | Kevin Peng <kevin.peng@arm.com> | Thu Nov 18 11:46:02 2021 +0800 |
committer | Xinyu Zhang <xinyu.zhang@arm.com> | Mon Nov 22 17:10:38 2021 +0800 |
tree | d1237dd41b885cfd586c2d31dfdd70931f5b9025 | |
parent | efe2a5b97898853509227836792cc4db7265c226 [diff] [blame] |
SPM: Clean connection handle in creation Change-Id: I4b0027de4f26b81b9226c35c140939bffe66ab85 Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/secure_fw/spm/cmsis_psa/spm_ipc.c b/secure_fw/spm/cmsis_psa/spm_ipc.c index aec2c12..67a28c3 100755 --- a/secure_fw/spm/cmsis_psa/spm_ipc.c +++ b/secure_fw/spm/cmsis_psa/spm_ipc.c
@@ -144,6 +144,8 @@ return NULL; } + spm_memset(p_handle, 0, sizeof(*p_handle)); + p_handle->internal_msg.service = service; p_handle->status = TFM_HANDLE_STATUS_IDLE; p_handle->client_id = client_id;