crypto: Validate return values from CRYPTODEV_PROCESS()
authorMark Johnston <markj@FreeBSD.org>
Fri, 1 Jul 2022 15:09:39 +0000 (11:09 -0400)
committerMark Johnston <markj@FreeBSD.org>
Fri, 1 Jul 2022 15:09:39 +0000 (11:09 -0400)
commit99df914899f56efe63afd9e0fef79148fa6ca162
tree8d621483753d2cc31565fac3fb3814d2ba5426e8
parent8179db52c2c8692cdabf818bf1b7fdf3ad43b2db
crypto: Validate return values from CRYPTODEV_PROCESS()

Errors are always handled by the completion callback, so we should check
that they're not also passed back to the caller.

No functional change intended.

Reviewed by: kp, mav, jhb
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35382
sys/opencrypto/crypto.c