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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to