X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=crypto%2Fshash.c;h=22fd9433141f997c2d5d11f0e46625309dfbe43a;hb=4731030d58a146630f5e8a0519661a5344a60f45;hp=91f7b9d838819b870ec20f05648d3027b3cf03f4;hpb=081a8c450290401ffc75558c65a188d7b72db07d;p=firefly-linux-kernel-4.4.55.git 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;