]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam/qi - fix error path in xts setkey
authorHoria Geantă <horia.geanta@nxp.com>
Mon, 6 Aug 2018 12:29:39 +0000 (15:29 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 25 Aug 2018 11:50:41 +0000 (19:50 +0800)
commit13bb4e6ea952606cb9fc4329557b6d6e8f208c83
tree7cf28486b131a622b7ec800d6c15a4add1e051e9
parentae8640b2ee5390c16cd68db3f4c38f6ae474cf82
crypto: caam/qi - fix error path in xts setkey

xts setkey callback returns 0 on some error paths.
Fix this by returning -EINVAL.

Cc: <stable@vger.kernel.org> # 4.12+
Fixes: e5f15d59c8a1 ("crypto: caam/qi - add ablkcipher and authenc algorithms")
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_qi.c