X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=crypto%2Fdigest.c;h=5d3f1303da985417d0ab192c5909aadd5f60ab0b;hb=ddd13dc606ea1a06f2cf7d11dc06418de3e28121;hp=ac0919460d143c9e45b10212899d3b2cc3ec3a25;hpb=dc221eae08eea3b0db127d1f152fac24d10b6a52;p=pandora-kernel.git diff --git a/crypto/digest.c b/crypto/digest.c index ac0919460d14..5d3f1303da98 100644 --- a/crypto/digest.c +++ b/crypto/digest.c @@ -225,7 +225,7 @@ int crypto_init_digest_ops_async(struct crypto_tfm *tfm) struct ahash_tfm *crt = &tfm->crt_ahash; struct digest_alg *dalg = &tfm->__crt_alg->cra_digest; - if (dalg->dia_digestsize > crypto_tfm_alg_blocksize(tfm)) + if (dalg->dia_digestsize > PAGE_SIZE / 8) return -EINVAL; crt->init = digest_async_init;