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:
5bdd5de
)
crypto: shash - Remove usage of CRYPTO_MINALIGN
author
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 19 May 2010 01:50:58 +0000
(11:50 +1000)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 19 May 2010 01:50:58 +0000
(11:50 +1000)
The macro CRYPTO_MINALIGN is not meant to be used directly. This
patch replaces it with crypto_tfm_ctx_alignment.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/shash.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/shash.c
b/crypto/shash.c
index 91f7b9d838819b870ec20f05648d3027b3cf03f4..22fd9433141f997c2d5d11f0e46625309dfbe43a 100644
(file)
--- a/
crypto/shash.c
+++ b/
crypto/shash.c
@@
-37,7
+37,7
@@
static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key,
u8 *buffer, *alignbuffer;
int err;
- absize = keylen + (alignmask & ~(
CRYPTO_MINALIGN
- 1));
+ absize = keylen + (alignmask & ~(
crypto_tfm_ctx_alignment()
- 1));
buffer = kmalloc(absize, GFP_KERNEL);
if (!buffer)
return -ENOMEM;