summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2010-05-19 11:50:58 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2010-05-19 11:50:58 +1000
commitbc0c4af91c778afb314a90bdc057dab5157dcd84 (patch)
treebdc82a0b77de3a1cb7e02b92f9a749f32f7ced65
parentfa09798e8294e18c391c7aa2586977bb6262957e (diff)
downloadlinux-crypto-bc0c4af91c778afb314a90bdc057dab5157dcd84.tar.gz
linux-crypto-bc0c4af91c778afb314a90bdc057dab5157dcd84.zip
crypto: shash - Remove usage of CRYPTO_MINALIGN
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>
-rw-r--r--crypto/shash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/shash.c b/crypto/shash.c
index 91f7b9d8..22fd9433 100644
--- 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;