From 43fcf073810b7b7226eb5c8e785ae11933e43c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vidar=20Lilleb=C3=B8?= Date: Fri, 9 Aug 2024 16:38:46 +0200 Subject: [PATCH] [nrf fromlist TODO] Fix return code --- .../internal_trusted_storage/tfm_internal_trusted_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secure_fw/partitions/internal_trusted_storage/tfm_internal_trusted_storage.c b/secure_fw/partitions/internal_trusted_storage/tfm_internal_trusted_storage.c index b98574365..2c6a41c2a 100644 --- a/secure_fw/partitions/internal_trusted_storage/tfm_internal_trusted_storage.c +++ b/secure_fw/partitions/internal_trusted_storage/tfm_internal_trusted_storage.c @@ -103,7 +103,7 @@ static psa_status_t buffer_size_check(int32_t client_id, size_t buffer_size) * global buffer. */ if (buffer_size > sizeof(enc_asset_data)) { - return PSA_ERROR_BUFFER_TOO_SMALL; + return PSA_ERROR_INVALID_ARGUMENT; } } return PSA_SUCCESS;