Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11403
b: refs/heads/master
c: 1b40efd
h: refs/heads/master
i:
  11401: d5a6573
  11399: 7c82b3b
v: v3
  • Loading branch information
Herbert Xu committed Oct 30, 2005
1 parent f8a4a27 commit 670b2ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6df5b9f48dd0e77fa796b9b7d3fde7cc5f1237f2
refs/heads/master: 1b40efd772f4419fbc1a8940506424246985c333
5 changes: 4 additions & 1 deletion trunk/crypto/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,10 @@ int crypto_register_alg(struct crypto_alg *alg)
if (alg->cra_alignmask & (alg->cra_alignmask + 1))
return -EINVAL;

if (alg->cra_alignmask > PAGE_SIZE)
if (alg->cra_alignmask & alg->cra_blocksize)
return -EINVAL;

if (alg->cra_blocksize > PAGE_SIZE)
return -EINVAL;

down_write(&crypto_alg_sem);
Expand Down

0 comments on commit 670b2ea

Please sign in to comment.