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)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 Nov 2016 01:01:36 +0000 (01:01 +0000)
commit0a9c9f4c380d57954574e8682c04b850eed7c15d
tree2e83734a4f6e912444ffdd0ea9b888563f08b60a
parentb0f819c3e20d712d4cd38e4bb3ddb3e90ca8fbad
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: Ben Hutchings <ben@decadent.org.uk>
crypto/cryptd.c