aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/api.c b/crypto/api.c
index 2715afdf678c..e26156f71839 100644
--- a/crypto/api.c
+++ b/crypto/api.c
@@ -251,7 +251,7 @@ int crypto_register_alg(struct crypto_alg *alg)
251 if (alg->cra_alignmask & alg->cra_blocksize) 251 if (alg->cra_alignmask & alg->cra_blocksize)
252 return -EINVAL; 252 return -EINVAL;
253 253
254 if (alg->cra_blocksize > PAGE_SIZE) 254 if (alg->cra_blocksize > PAGE_SIZE / 8)
255 return -EINVAL; 255 return -EINVAL;
256 256
257 if (alg->cra_priority < 0) 257 if (alg->cra_priority < 0)