diff options
Diffstat (limited to 'crypto/ahash.c')
-rw-r--r-- | crypto/ahash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ahash.c b/crypto/ahash.c index a83e035d9a3f..8c1f918a6878 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c | |||
@@ -68,7 +68,7 @@ static int crypto_init_ahash_ops(struct crypto_tfm *tfm, u32 type, u32 mask) | |||
68 | struct ahash_alg *alg = &tfm->__crt_alg->cra_ahash; | 68 | struct ahash_alg *alg = &tfm->__crt_alg->cra_ahash; |
69 | struct ahash_tfm *crt = &tfm->crt_ahash; | 69 | struct ahash_tfm *crt = &tfm->crt_ahash; |
70 | 70 | ||
71 | if (alg->digestsize > crypto_tfm_alg_blocksize(tfm)) | 71 | if (alg->digestsize > PAGE_SIZE / 8) |
72 | return -EINVAL; | 72 | return -EINVAL; |
73 | 73 | ||
74 | crt->init = alg->init; | 74 | crt->init = alg->init; |