Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: img-hash - Fix set_reqsize call

Properly allocate enough memory to respect the fallback.

Signed-off-by: Will Thomas <will.thomas@imgtec.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Will Thomas and committed by
Herbert Xu
5e38d200 fb67740e

+1
+1
drivers/crypto/img-hash.c
··· 686 686 } 687 687 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), 688 688 sizeof(struct img_hash_request_ctx) + 689 + crypto_ahash_reqsize(ctx->fallback) + 689 690 IMG_HASH_DMA_THRESHOLD); 690 691 691 692 return 0;