diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2020-05-25 23:12:49 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2020-05-25 23:12:49 +0000 |
| commit | 72d874fa9068c70d2ea862ce7e76816d60b26c16 (patch) | |
| tree | 5fca8f72fd22010ce833db4791850f51581e327b /sys/dev/cesa | |
| parent | 23230d520ae86d64e29b887d016fa349c4bc35e7 (diff) | |
Notes
Diffstat (limited to 'sys/dev/cesa')
| -rw-r--r-- | sys/dev/cesa/cesa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cesa/cesa.c b/sys/dev/cesa/cesa.c index 11e2898c1526..04646f1f4bd3 100644 --- a/sys/dev/cesa/cesa.c +++ b/sys/dev/cesa/cesa.c @@ -1712,7 +1712,7 @@ cesa_process(device_t dev, struct cryptop *crp, int hint) 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); |
