mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-15 11:08:06 +00:00
crypto: drbg - Initialise mutex in drbg_healthcheck_sanity
As we moved the mutex init out of drbg_instantiate and into cra_init we need to explicitly initialise the mutex in drbg_healthcheck_sanity. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Stephan Mueller <smueller@chronox.de>
This commit is contained in:
parent
fa3ae6253c
commit
e11a754813
1 changed files with 2 additions and 0 deletions
|
|
@ -1741,6 +1741,8 @@ static inline int __init drbg_healthcheck_sanity(void)
|
|||
if (!drbg)
|
||||
return -ENOMEM;
|
||||
|
||||
mutex_init(&drbg->drbg_mutex);
|
||||
|
||||
/*
|
||||
* if the following tests fail, it is likely that there is a buffer
|
||||
* overflow as buf is much smaller than the requested or provided
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue