projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
543de10
)
crypto: drbg - Fixes panic in wait_for_completion call
author
Stephan Mueller
<smueller@chronox.de>
Fri, 26 May 2017 10:12:51 +0000
(12:12 +0200)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 10 Jun 2017 04:04:31 +0000
(12:04 +0800)
Initialise ctr_completion variable before use.
Signed-off-by: Harsh Jain <harshjain.prof@gmail.com>
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/drbg.c
b/crypto/drbg.c
index fa749f47013508d562366fb0484e7ea80535ba0a..433c4258e484ee2f7afc932069d3611a07eeb9b9 100644
(file)
--- a/
crypto/drbg.c
+++ b/
crypto/drbg.c
@@
-1691,6
+1691,7
@@
static int drbg_init_sym_kernel(struct drbg_state *drbg)
return PTR_ERR(sk_tfm);
}
drbg->ctr_handle = sk_tfm;
+ init_completion(&drbg->ctr_completion);
req = skcipher_request_alloc(sk_tfm, GFP_KERNEL);
if (!req) {