Skip to content

Commit 15ccb32

Browse files
author
Cruz Monrreal
authored
Merge pull request #9836 from kfnta/tfm_patch
TF-M: Fix issues found in SPM tests
2 parents 044d0c9 + 5f2cbaa commit 15ccb32

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core/ipc/tfm_svcalls.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,6 @@ void tfm_svcall_psa_close(uint32_t *args, int32_t ns_caller)
256256
* and scheduler triggered
257257
*/
258258
tfm_spm_send_event(service, msg);
259-
260-
/* Service handle is not used anymore */
261-
tfm_spm_free_conn_handle(service, handle);
262259
}
263260

264261
/*********************** SVC handler for PSA Service APIs ********************/
@@ -788,6 +785,9 @@ static void tfm_svcall_psa_reply(uint32_t *args)
788785
update_caller_outvec_len(msg);
789786
break;
790787
case PSA_IPC_DISCONNECT:
788+
/* Service handle is not used anymore */
789+
tfm_spm_free_conn_handle(service, msg->handle);
790+
791791
/*
792792
* If the message type is PSA_IPC_DISCONNECT, then the status code is
793793
* ignored

tools/importer/tfm_importer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
"da01e3411fcf8010f4ae581946cf4b0e7753e024",
9797
"008bf1b2d176c04fb33985e0677e90e3800cb4ca",
9898
"67a4e6d723dfb199fdbe9a2cef57dbe58cbc026f",
99-
"6354b9a47351a29ea24023c5471b63d39e091959"
99+
"6354b9a47351a29ea24023c5471b63d39e091959",
100+
"ebc961dab8630522fa341015260d9e75981f6982"
100101
]
101102
}
102103

0 commit comments

Comments
 (0)