Skip to content

Commit 1ebd623

Browse files
committed
Fix second potential NULL dereference
1 parent 1443ec8 commit 1ebd623

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zephyr/src/arm_tee_crypto_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,6 @@ psa_status_t psa_cipher_update(psa_cipher_operation_t *operation,
431431
{
432432
struct arm_tee_crypto_pack_iovec iov = {
433433
.function_id = ARM_TEE_CRYPTO_CIPHER_UPDATE_SID,
434-
.op_handle = (uint32_t)operation->opaque,
435434
};
436435
psa_invec in_vec[] = {
437436
{.base = &iov, .len = sizeof(struct arm_tee_crypto_pack_iovec)},
@@ -448,6 +447,7 @@ psa_status_t psa_cipher_update(psa_cipher_operation_t *operation,
448447
return PSA_ERROR_INVALID_ARGUMENT;
449448
}
450449

450+
iov.op_handle = (uint32_t)operation->opaque;
451451
status = API_DISPATCH(in_vec, out_vec);
452452
if (status == PSA_SUCCESS) {
453453
*output_length = out_vec[0].len;

0 commit comments

Comments
 (0)