crypto: cryptd - initialize child shash_desc on import
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 1 Sep 2016 13:25:43 +0000 (14:25 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 7 Sep 2016 13:04:36 +0000 (21:04 +0800)
commit0bd2223594a4dcddc1e34b15774a3a4776f7749e
treeb4b590508cb653ed43308b63ce1c4ec9dcfd255f
parent8b18e2359aff2ab810aba84cebffc9da07fef78f
crypto: cryptd - initialize child shash_desc on import

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>
crypto/cryptd.c