projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d805848
)
[CRYPTO] blkcipher: Increase kmalloc amount to aligned block size
author
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 4 Oct 2007 06:49:00 +0000
(14:49 +0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:55:48 +0000
(16:55 -0700)
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>
crypto/blkcipher.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/blkcipher.c
b/crypto/blkcipher.c
index a3c87da23f1e1f7ad84fcf30e560a6d936267bdb..3d05586a8f34f34a9ff3e96312ccb6797ada3c22 100644
(file)
--- 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)