diff --git a/library/psa_crypto.c b/library/psa_crypto.c index b7c891eb7..b16fac16f 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -7953,7 +7953,7 @@ exit: if (status != PSA_SUCCESS) { psa_pake_abort(operation); } - unlock_status = psa_unregister_read(slot); + unlock_status = psa_unregister_read_under_mutex(slot); return (status == PSA_SUCCESS) ? unlock_status : status; }