diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-20 11:26:48 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-21 10:19:52 +0800 |
commit | 55e8f18b0d41f22aa8b81dc45402bbcfbe2e2f69 (patch) | |
tree | 1b915dcd5ffc12e6cf46194f9aff35ed68383a6e /crypto | |
parent | 2c21296692929c3294adb723800b82e57784cff3 (diff) | |
download | linux-crypto-55e8f18b0d41f22aa8b81dc45402bbcfbe2e2f69.tar.gz linux-crypto-55e8f18b0d41f22aa8b81dc45402bbcfbe2e2f69.zip |
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>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/drbg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/drbg.c b/crypto/drbg.c index 30ec2a62..57fd479b 100644 --- a/crypto/drbg.c +++ b/crypto/drbg.c @@ -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 |