aboutsummaryrefslogtreecommitdiff
path: root/interface
diff options
context:
space:
mode:
authorKevin Peng <kevin.peng@arm.com>2021-01-28 10:39:58 +0800
committerKen Liu <ken.liu@arm.com>2021-02-07 01:47:54 +0000
commit5979822a2cba04d9dda684838f15fe9d1fea9910 (patch)
tree48c2771c78c897863f017d76d28b0fa36274a19a /interface
parent124ce609046c49386cac4151e7cfbb8289ef7d97 (diff)
downloadtrusted-firmware-m-5979822a2cba04d9dda684838f15fe9d1fea9910.tar.gz
Partitions: Error code casting should only happen in Lib Model
IPC model does not return tfm_status_e to Partition APIs. This patch limits the error code casting to Lib model code. Change-Id: Icaba5082f0661a142b107fdba02d23392483829e Signed-off-by: Kevin Peng <kevin.peng@arm.com>
Diffstat (limited to 'interface')
-rw-r--r--interface/src/tfm_its_ipc_api.c12
-rw-r--r--interface/src/tfm_ps_ipc_api.c8
2 files changed, 0 insertions, 20 deletions
diff --git a/interface/src/tfm_its_ipc_api.c b/interface/src/tfm_its_ipc_api.c
index 9326f7b8e..8ad4a3bbb 100644
--- a/interface/src/tfm_its_ipc_api.c
+++ b/interface/src/tfm_its_ipc_api.c
@@ -36,10 +36,6 @@ psa_status_t psa_its_set(psa_storage_uid_t uid,
psa_close(handle);
- if (status == (psa_status_t)TFM_ERROR_INVALID_PARAMETER) {
- return PSA_ERROR_INVALID_ARGUMENT;
- }
-
return status;
}
@@ -75,10 +71,6 @@ psa_status_t psa_its_get(psa_storage_uid_t uid,
psa_close(handle);
- if (status == (psa_status_t)TFM_ERROR_INVALID_PARAMETER) {
- return PSA_ERROR_INVALID_ARGUMENT;
- }
-
*p_data_length = out_vec[0].len;
return status;
@@ -108,10 +100,6 @@ psa_status_t psa_its_get_info(psa_storage_uid_t uid,
psa_close(handle);
- if (status == (psa_status_t)TFM_ERROR_INVALID_PARAMETER) {
- return PSA_ERROR_INVALID_ARGUMENT;
- }
-
return status;
}
diff --git a/interface/src/tfm_ps_ipc_api.c b/interface/src/tfm_ps_ipc_api.c
index 7cc3a63ff..4f937db2d 100644
--- a/interface/src/tfm_ps_ipc_api.c
+++ b/interface/src/tfm_ps_ipc_api.c
@@ -36,14 +36,6 @@ psa_status_t psa_ps_set(psa_storage_uid_t uid,
psa_close(handle);
- /* A parameter with a buffer pointer pointer that has data length longer
- * than maximum permitted is treated as a secure violation.
- * TF-M framework rejects the request with TFM_ERROR_INVALID_PARAMETER.
- */
- if (status == (psa_status_t)TFM_ERROR_INVALID_PARAMETER) {
- return PSA_ERROR_INVALID_ARGUMENT;
- }
-
return status;
}