From: Herbert Xu Date: Wed, 19 May 2010 01:50:58 +0000 (+1000) Subject: crypto: shash - Remove usage of CRYPTO_MINALIGN X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18eb8ea6ee4cc9ed39b45f95b734f523bcfb586b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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, 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;