projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa3ae62
)
crypto: drbg - Initialise mutex in drbg_healthcheck_sanity
author
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 20 Apr 2015 03:26:48 +0000
(11:26 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 21 Apr 2015 02:19:52 +0000
(10:19 +0800)
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>
crypto/drbg.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/drbg.c
b/crypto/drbg.c
index 30ec2a624b70c120fc3246ae406477996acd541f..57fd479b8f777f927d7f4b2690c91e6679817956 100644
(file)
--- 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