diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 66af7cf72..c51bb8dad 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -4088,7 +4088,7 @@ exit: psa_cipher_abort(operation); } - unlock_status = psa_unregister_read(slot); + unlock_status = psa_unregister_read_under_mutex(slot); return (status == PSA_SUCCESS) ? unlock_status : status; }