]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Aug 2018 19:02:44 +0000 (21:02 +0200)
commitf21a81f5b952b32abfc329ca93078a91a28fe8cd
treea08b0388500494457841f4e9cc56765519332dbb
parent483efa679b61f0d47cf37fd16862ad290f780864
crypto: skcipher - fix aligning block size in skcipher_copy_iv()

commit 0567fc9e90b9b1c8dbce8a5468758e6206744d4a upstream.

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

Fixes: b286d8b1a690 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/skcipher.c