Skip to content

Commit d9d497b

Browse files
committed
SPM: PSA_ERROR_CONNECTION_REFUSED belongs to programmer error
PSA_ERROR_CONNECTION_REFUSED belongs to programmer error and should panic if the caller a Secure Partition. Signed-off-by: Summer Qin <[email protected]> Change-Id: I4a8c3f7145546c7c4c96620b90feb2f51d24c061
1 parent bc1a886 commit d9d497b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

secure_fw/spm/ffm/psa_api.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,11 @@ extern struct service_t *stateless_services_ref_tbl[];
9090

9191
void spm_handle_programmer_errors(psa_status_t status)
9292
{
93-
if ((status == PSA_ERROR_PROGRAMMER_ERROR) && !tfm_spm_is_ns_caller()) {
93+
if (status == PSA_ERROR_PROGRAMMER_ERROR ||
94+
status == PSA_ERROR_CONNECTION_REFUSED) {
95+
if (!tfm_spm_is_ns_caller()) {
9496
tfm_core_panic();
97+
}
9598
}
9699
}
97100

0 commit comments

Comments
 (0)