Skip to content

Commit

Permalink
[nrf fromlist TODO] Fix return code
Browse files Browse the repository at this point in the history
  • Loading branch information
vili-nordic committed Aug 9, 2024
1 parent e345a07 commit 43fcf07
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 43fcf07

Please sign in to comment.