* [PATCH] crypto/virtio: return proper error in session fail
@ 2025-01-08 12:14 Rajesh Mudimadugula
0 siblings, 0 replies; only message in thread
From: Rajesh Mudimadugula @ 2025-01-08 12:14 UTC (permalink / raw)
To: dev; +Cc: jianjay.zhou, Rajesh Mudimadugula
Return relevant error code when crypto session configure
fails.
Signed-off-by: Rajesh Mudimadugula <rmudimadugul@marvell.com>
---
drivers/crypto/virtio/virtio_cryptodev.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/crypto/virtio/virtio_cryptodev.c b/drivers/crypto/virtio/virtio_cryptodev.c
index 98415af123..ebb53cd483 100644
--- a/drivers/crypto/virtio/virtio_cryptodev.c
+++ b/drivers/crypto/virtio/virtio_cryptodev.c
@@ -1373,6 +1373,7 @@ virtio_crypto_sym_configure_session(
}
break;
default:
+ ret = -ENOTSUP;
VIRTIO_CRYPTO_SESSION_LOG_ERR(
"Unsupported operation chain order parameter");
goto error_out;
@@ -1380,7 +1381,7 @@ virtio_crypto_sym_configure_session(
return 0;
error_out:
- return -1;
+ return ret;
}
static void
--
2.34.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-01-08 12:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-08 12:14 [PATCH] crypto/virtio: return proper error in session fail Rajesh Mudimadugula
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).