diff options
Diffstat (limited to 'meta-snowyowl/recipes-kernel/linux/files/0177-crypto-drbg-Fixes-panic-in-wait_for_completion-call.patch')
-rwxr-xr-x | meta-snowyowl/recipes-kernel/linux/files/0177-crypto-drbg-Fixes-panic-in-wait_for_completion-call.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-snowyowl/recipes-kernel/linux/files/0177-crypto-drbg-Fixes-panic-in-wait_for_completion-call.patch b/meta-snowyowl/recipes-kernel/linux/files/0177-crypto-drbg-Fixes-panic-in-wait_for_completion-call.patch new file mode 100755 index 00000000..8b299a48 --- /dev/null +++ b/meta-snowyowl/recipes-kernel/linux/files/0177-crypto-drbg-Fixes-panic-in-wait_for_completion-call.patch @@ -0,0 +1,35 @@ +From de190dfddee7280ff3405b9d5f4e04b8fd02d934 Mon Sep 17 00:00:00 2001 +From: Stephan Mueller <smueller@chronox.de> +Date: Fri, 26 May 2017 12:11:31 +0200 +Subject: [PATCH 048/331] crypto: drbg - Fixes panic in wait_for_completion + call + +commit b61929c654f2e725644935737c4c1ea9c741e2f8 upstream. + +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> +Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> +Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com> +--- + crypto/drbg.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/crypto/drbg.c b/crypto/drbg.c +index 123d211..8cac3d3 100644 +--- 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) { +-- +2.7.4 + |