提交 5e38d200 编写于 作者: W Will Thomas 提交者: Herbert Xu

crypto: img-hash - Fix set_reqsize call

Properly allocate enough memory to respect the fallback.
Signed-off-by: NWill Thomas <will.thomas@imgtec.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 fb67740e
......@@ -686,6 +686,7 @@ static int img_hash_cra_init(struct crypto_tfm *tfm, const char *alg_name)
}
crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
sizeof(struct img_hash_request_ctx) +
crypto_ahash_reqsize(ctx->fallback) +
IMG_HASH_DMA_THRESHOLD);
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册