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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 29 Sep 2016 09:14:26 +0000 (11:14 +0200)
commit8d6f6eb1a459ec5ca3750a3f49d7f6130de6df13
treeae4acb7083c22dac0ba211258c8b459d4cf155ea
parente5eb7be2db286ec3fdaf5cf5451e653d6a6d95b8
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()

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
crypto/cryptd.c