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;