mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
942d849d32
commit
082a9d0918
1 changed files with 1 additions and 1 deletions
|
@ -591,7 +591,7 @@ inline int safexcel_rdesc_check_errors(struct safexcel_crypto_priv *priv,
|
||||||
dev_err(priv->dev,
|
dev_err(priv->dev,
|
||||||
"cipher: result: result descriptor error (0x%x)\n",
|
"cipher: result: result descriptor error (0x%x)\n",
|
||||||
rdesc->result_data.error_code);
|
rdesc->result_data.error_code);
|
||||||
return -EIO;
|
return -EINVAL;
|
||||||
} else if (rdesc->result_data.error_code == BIT(9)) {
|
} else if (rdesc->result_data.error_code == BIT(9)) {
|
||||||
/* Authentication failed */
|
/* Authentication failed */
|
||||||
return -EBADMSG;
|
return -EBADMSG;
|
||||||
|
|
Loading…
Add table
Reference in a new issue