From 35938a407133fe0c20c25b6fae2836148d1adfca Mon Sep 17 00:00:00 2001 From: Michael Schwarcz Date: Thu, 7 Feb 2019 12:10:03 +0200 Subject: [PATCH] TF-M patch: Fix service handles not cleared issue (TF-M issue #230) - Link to bug tracking: https://developer.trustedfirmware.org/T230 (cherry picked from commit 0c23e8698958b6e716114267fbdf6d82a16b6e0c) (cherry picked from commit 9c1e080e39adc7211c8c2c12cd652da3dc124299) --- .../TARGET_TFM/COMPONENT_SPE/secure_fw/core/ipc/tfm_spm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core/ipc/tfm_spm.c b/components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core/ipc/tfm_spm.c index e2dbfd13f8..30210d940b 100644 --- a/components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core/ipc/tfm_spm.c +++ b/components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core/ipc/tfm_spm.c @@ -112,6 +112,8 @@ int32_t tfm_spm_free_conn_handle(struct tfm_spm_service_t *service, /* Remove node from handle list */ tfm_list_del_node(&node->list); + node->rhandle = NULL; + /* Back handle buffer to pool */ tfm_pool_free(node); return IPC_SUCCESS;