crypto: inside-secure - change returned error when a descriptor reports an error
authorAntoine Tenart <antoine.tenart@bootlin.com>
Mon, 27 May 2019 14:50:58 +0000 (16:50 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Jun 2019 06:38:56 +0000 (14:38 +0800)
commit082a9d0918d2aae48dc3b836a8e3ca6aa53d2495
tree857bf8fa313dc94929f16caa62721db98ca5b466
parent942d849d32d0126442bdf7a4052bb46fbf23a3c6
crypto: inside-secure - change returned error when a descriptor reports an error

This patch changes the error reported by the Inside Secure SafeXcel
driver when a result descriptor reports an error, from -EIO to -EINVAL,
as this is what the crypto framework expects. This was found while
running the crypto extra tests.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.c