]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerTodd Vierling <todd.vierling@oracle.com>
Fri, 9 Dec 2016 14:47:38 +0000 (09:47 -0500)
commitec38bd330c53c64ab319140523df1ec5d88a7c8f
treebaf0aaa7e47cbd6922d301b32e455fec941c81a1
parent7c8e99e5e8cbfacd927b4132c3c2b45ece5630bf
crypto: cryptd - initialize child shash_desc on import

[ Upstream commit 0bd2223594a4dcddc1e34b15774a3a4776f7749e ]

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: Sasha Levin <alexander.levin@verizon.com>
(cherry picked from commit b8e51107942182fdcd111c5fc3e601b3b8c9e8f4)
Signed-off-by: Todd Vierling <todd.vierling@oracle.com>
Reviewed-by: Ethan Zhao <ethan.zhao@oracle.com>
crypto/cryptd.c