summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-10-04 14:49:00 +0800
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 16:55:48 -0700
commit04fd4e389277933e62ab02746bec50cabc1e7a85 (patch)
tree07b0d2d78503b8210250a27808b195ae9f002c55 /crypto
parent7b5f73a19cbf7582f924e16eabd19d44a2b77a61 (diff)
downloadlinux-crypto-04fd4e389277933e62ab02746bec50cabc1e7a85.tar.gz
linux-crypto-04fd4e389277933e62ab02746bec50cabc1e7a85.zip
[CRYPTO] blkcipher: Increase kmalloc amount to aligned block size
Now that the block size is no longer a multiple of the alignment, we need to increase the kmalloc amount in blkcipher_next_slow to use the aligned block size. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/blkcipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c
index a3c87da2..3d05586a 100644
--- a/crypto/blkcipher.c
+++ b/crypto/blkcipher.c
@@ -158,7 +158,7 @@ static inline int blkcipher_next_slow(struct blkcipher_desc *desc,
if (walk->buffer)
goto ok;
- n = bsize * 3 - (alignmask + 1) +
+ n = aligned_bsize * 3 - (alignmask + 1) +
(alignmask & ~(crypto_tfm_ctx_alignment() - 1));
walk->buffer = kmalloc(n, GFP_ATOMIC);
if (!walk->buffer)