diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-30 20:37:44 -0500 | 
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-30 20:37:44 -0500 | 
| commit | 9e0cb06b17be7e562cbdaba2768649f025826dc6 (patch) | |
| tree | aaf5ef8c6cd11764d222df9c446ad9af17e0020e /crypto/api.c | |
| parent | 23da0c20ef1c1f0432f373e0e2233a6b6ab2678f (diff) | |
| parent | 6e9d6b8ee4e0c37d3952256e6472c57490d6780d (diff) | |
Merge branch 'master'
Diffstat (limited to 'crypto/api.c')
| -rw-r--r-- | crypto/api.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/crypto/api.c b/crypto/api.c index 959c4e5f264f..40ae42e9b6a6 100644 --- a/crypto/api.c +++ b/crypto/api.c | |||
| @@ -215,7 +215,10 @@ int crypto_register_alg(struct crypto_alg *alg) | |||
| 215 | if (alg->cra_alignmask & (alg->cra_alignmask + 1)) | 215 | if (alg->cra_alignmask & (alg->cra_alignmask + 1)) | 
| 216 | return -EINVAL; | 216 | return -EINVAL; | 
| 217 | 217 | ||
| 218 | if (alg->cra_alignmask > PAGE_SIZE) | 218 | if (alg->cra_alignmask & alg->cra_blocksize) | 
| 219 | return -EINVAL; | ||
| 220 | |||
| 221 | if (alg->cra_blocksize > PAGE_SIZE) | ||
| 219 | return -EINVAL; | 222 | return -EINVAL; | 
| 220 | 223 | ||
| 221 | down_write(&crypto_alg_sem); | 224 | down_write(&crypto_alg_sem); | 
