diff options
-rw-r--r-- | crypto/cryptd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/cryptd.c b/crypto/cryptd.c index ef5720cf1216..6e6722edd0d9 100644 --- a/crypto/cryptd.c +++ b/crypto/cryptd.c | |||
@@ -353,8 +353,9 @@ static int cryptd_hash_init_tfm(struct crypto_tfm *tfm) | |||
353 | return PTR_ERR(hash); | 353 | return PTR_ERR(hash); |
354 | 354 | ||
355 | ctx->child = hash; | 355 | ctx->child = hash; |
356 | tfm->crt_ahash.reqsize = sizeof(struct cryptd_hash_request_ctx) + | 356 | crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), |
357 | crypto_shash_descsize(hash); | 357 | sizeof(struct cryptd_hash_request_ctx) + |
358 | crypto_shash_descsize(hash)); | ||
358 | return 0; | 359 | return 0; |
359 | } | 360 | } |
360 | 361 | ||