]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: skcipher - fix aligning block size in skcipher_copy_iv()
authorEric Biggers <ebiggers@google.com>
Mon, 23 Jul 2018 16:57:50 +0000 (09:57 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Aug 2018 10:06:03 +0000 (18:06 +0800)
commit48e1cb87d60f4ffa9ce4836cd98676e3acde3a0a
treec5ec7dd05c193c038adb2393a22cbc7bdbd1958d
parent1d9f5b43afc6fededfe1ce93493a51761bc324ac
crypto: skcipher - fix aligning block size in skcipher_copy_iv()

The ALIGN() macro needs to be passed the alignment, not the alignmask
(which is the alignment minus 1).

Fixes: 737af8fc0c4a ("crypto: skcipher - Add skcipher walk interface")
Cc: <stable@vger.kernel.org> # v4.10+
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/skcipher.c