bsdkm: return 0 from wolfkdriv_process() to comply with opencrypto(9)

cryptodev_process must return 0 once crypto_done() has fired; errors are reported via crp_etype, otherwise the framework may re-dispatch an already-completed request.

Signed-off-by: Sameeh Jubran <sameeh@wolfssl.com>
This commit is contained in:
Sameeh Jubran
2026-04-24 15:00:32 +03:00
parent 43e44cb418
commit 7ca42d1e55
+2 -1
View File
@@ -1020,7 +1020,8 @@ static int wolfkdriv_process(device_t dev, struct cryptop * crp, int hint)
csp->csp_mode, csp->csp_cipher_alg, error);
#endif /* WOLFSSL_BSDKM_VERBOSE_DEBUG */
return (error);
/* opencrypto(9) contract: return 0 after crypto_done(); error is in crp_etype. */
return (0);
}
/*