diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2010-05-18 21:50:58 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-05-18 21:50:58 -0400 |
commit | 18eb8ea6ee4cc9ed39b45f95b734f523bcfb586b (patch) | |
tree | 2499592ecc24caf28c03c3af7c45dfc6433821f4 | |
parent | 5bdd5ded95b3188d58ba43ac801b8849cbea1b16 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/shash.c b/crypto/shash.c index 91f7b9d83881..22fd9433141f 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, | |||
37 | u8 *buffer, *alignbuffer; | 37 | u8 *buffer, *alignbuffer; |
38 | int err; | 38 | int err; |
39 | 39 | ||
40 | absize = keylen + (alignmask & ~(CRYPTO_MINALIGN - 1)); | 40 | absize = keylen + (alignmask & ~(crypto_tfm_ctx_alignment() - 1)); |
41 | buffer = kmalloc(absize, GFP_KERNEL); | 41 | buffer = kmalloc(absize, GFP_KERNEL); |
42 | if (!buffer) | 42 | if (!buffer) |
43 | return -ENOMEM; | 43 | return -ENOMEM; |