Skip to content

Commit 31d202b

Browse files
author
itayzafrir
committed
Change error code handling of calls to psa_call
1 parent 2918f74 commit 31d202b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

TESTS/psa/crypto_access_control/COMPONENT_PSA_SRV_IPC/test_partition_proxy.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ static psa_status_t invoke_ipc_call(uint32_t sid, psa_invec *in_vec, size_t in_v
3434
status = psa_call(handle, in_vec, in_vec_size, out_vec, out_vec_size);
3535
psa_close(handle);
3636

37-
if (status < 0) {
38-
status = PSA_ERROR_COMMUNICATION_FAILURE;
39-
}
40-
4137
return (status);
4238
}
4339

TESTS/psa/crypto_access_control/COMPONENT_SPE/test_partition.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323

2424
typedef psa_status_t (*SignalHandler)(psa_msg_t *);
2525

26+
#if defined(TARGET_TFM)
27+
#define SPM_PANIC(format, ...) \
28+
{ \
29+
while(1){}; \
30+
}
31+
#endif
32+
2633
static void read_input_param_from_message(psa_msg_t *msg, uint8_t param_index, void *param_ptr)
2734
{
2835
size_t bytes_read = psa_read(msg->handle, param_index, param_ptr, msg->in_size[param_index]);

0 commit comments

Comments
 (0)