svn commit: r361489 - head/sys/dev/cesa

John Baldwin jhb at FreeBSD.org
Mon May 25 23:12:50 UTC 2020


Author: jhb
Date: Mon May 25 23:12:49 2020
New Revision: 361489
URL: https://svnweb.freebsd.org/changeset/base/361489

Log:
  Update cesa(4) for separate output buffers changes in r361481.
  
  This does not add support for separate output buffers but updates the
  driver to cope with the changes.
  
  Pointy hat to:	jhb

Modified:
  head/sys/dev/cesa/cesa.c

Modified: head/sys/dev/cesa/cesa.c
==============================================================================
--- head/sys/dev/cesa/cesa.c	Mon May 25 23:07:50 2020	(r361488)
+++ head/sys/dev/cesa/cesa.c	Mon May 25 23:12:49 2020	(r361489)
@@ -1712,7 +1712,7 @@ cesa_process(device_t dev, struct cryptop *crp, int hi
 	csp = crypto_get_params(crp->crp_session);
 
 	/* Check and parse input */
-	if (crp->crp_ilen > CESA_MAX_REQUEST_SIZE) {
+	if (crypto_buffer_len(&crp->crp_buf) > CESA_MAX_REQUEST_SIZE) {
 		crp->crp_etype = E2BIG;
 		crypto_done(crp);
 		return (0);


More information about the svn-src-head mailing list