crypto: cryptd - initialize child shash_desc on import
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 27 Oct 2016 14:29:50 +0000 (17:29 +0300)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:14:09 +0000 (13:14 +0000)
commitacaa5388e4eda3308a3a00b7791d6b1ebbfaf04d
treeac3ade8c9dd85f8a09bdad7f438896f351c16f84
parent1d8d9532ee830b951141cf00b7d814d4be65e48a
crypto: cryptd - initialize child shash_desc on import

commit 0bd2223594a4dcddc1e34b15774a3a4776f7749e upstream.

When calling .import() on a cryptd ahash_request, the structure members
that describe the child transform in the shash_desc need to be initialized
like they are when calling .init()

Cc: stable@vger.kernel.org
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
crypto/cryptd.c