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)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Feb 2017 08:04:07 +0000 (09:04 +0100)
commit6ff69ad9e2a6629699075801e2cfc432359f88cc
treecdd5168939e26975de2e4fbf9eaf2bf6a16cb6fb
parentca46046c55cb4766cf7fc1a72ac2efe2e1da89d9
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