]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: artpec6 - return correct error code for failed setkey()
authorEric Biggers <ebiggers@google.com>
Tue, 31 Dec 2019 03:19:32 +0000 (21:19 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:33:27 +0000 (16:33 -0500)
commite1254ca723ecf5159e13a09508294cd71b215fa9
tree34a3be53563a2107af2e249f339add63493fa0af
parenta23409cee466c636eb74e42c8a139ba9a714b0f5
crypto: artpec6 - return correct error code for failed setkey()

commit b828f905904cd76424230c69741a4cabb0174168 upstream.

->setkey() is supposed to retun -EINVAL for invalid key lengths, not -1.

Fixes: a21eb94fc4d3 ("crypto: axis - add ARTPEC-6/7 crypto accelerator driver")
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: Lars Persson <lars.persson@axis.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Lars Persson <lars.persson@axis.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/axis/artpec6_crypto.c