aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/blkcipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c
index a3c87da23f1e..3d05586a8f34 100644
--- a/crypto/blkcipher.c
+++ b/crypto/blkcipher.c
@@ -158,7 +158,7 @@ static inline int blkcipher_next_slow(struct blkcipher_desc *desc,
158 if (walk->buffer) 158 if (walk->buffer)
159 goto ok; 159 goto ok;
160 160
161 n = bsize * 3 - (alignmask + 1) + 161 n = aligned_bsize * 3 - (alignmask + 1) +
162 (alignmask & ~(crypto_tfm_ctx_alignment() - 1)); 162 (alignmask & ~(crypto_tfm_ctx_alignment() - 1));
163 walk->buffer = kmalloc(n, GFP_ATOMIC); 163 walk->buffer = kmalloc(n, GFP_ATOMIC);
164 if (!walk->buffer) 164 if (!walk->buffer)