Date: Mon, 25 May 2020 23:12:50 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r361489 - head/sys/dev/cesa Message-ID: <202005252312.04PNColA041847@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005252312.04PNColA041847>