projects
/
GitHub
/
LineageOS
/
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:
d41519a
)
crypto: drbg - Fixes panic in wait_for_completion call
author
Stephan Mueller
<smueller@chronox.de>
Fri, 26 May 2017 10:11:31 +0000
(12:11 +0200)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 22 Jun 2017 08:47:21 +0000
(16:47 +0800)
Initialise ctr_completion variable before use.
Cc: <stable@vger.kernel.org>
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 cdb27ac4b2266eccff2ba89a5388ec2fbf6d18bc..633a88e93ab0c421b7b01a041726ad9563ce2d49 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) {