Skip to content

Commit

Permalink
[nrf fromtree] ITS: Fix return code
Browse files Browse the repository at this point in the history
Fix incorrect error code to align with what TFM_S_ITS_TEST_1020 expects.

Change-Id: I1a5ac1440a4784953f0ae28220dd79b2cf1fc596
Signed-off-by: Vidar Lillebø <[email protected]>
(cherry picked from commit 26d594c472b58bf1391b910d86c1457e7e64bb49)
  • Loading branch information
vili-nordic committed Aug 29, 2024
1 parent ac50042 commit b2d4626
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b2d4626

Please sign in to comment.