diff options
author | John Baldwin <jhb@FreeBSD.org> | 2023-02-06 21:51:57 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2023-02-06 21:51:57 +0000 |
commit | 70efe1a2fe13642732e56c7f040fe63f62bc6a6b (patch) | |
tree | d1c3f20be1fbcac2bf6a790b309cfd36996ddad4 /sys/dev | |
parent | 4fca8e0f65a8bbbd1242c1f7d8e33b77c479f5de (diff) | |
download | src-70efe1a2fe13642732e56c7f040fe63f62bc6a6b.tar.gz src-70efe1a2fe13642732e56c7f040fe63f62bc6a6b.zip |
ccr,ccp: Fix argument order to sglist_append_vmpages.
The offset comes before the byte count.
Reported by: br
Reviewed by: asomers, markj
MFC after: 1 week
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D38375
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/cxgbe/crypto/t4_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/crypto/t4_crypto.c b/sys/dev/cxgbe/crypto/t4_crypto.c index c4d0bbf868a9..a60540c7fb40 100644 --- a/sys/dev/cxgbe/crypto/t4_crypto.c +++ b/sys/dev/cxgbe/crypto/t4_crypto.c @@ -296,7 +296,7 @@ ccr_populate_sglist(struct sglist *sg, struct crypto_buffer *cb) break; case CRYPTO_BUF_VMPAGE: error = sglist_append_vmpages(sg, cb->cb_vm_page, - cb->cb_vm_page_len, cb->cb_vm_page_offset); + cb->cb_vm_page_offset, cb->cb_vm_page_len); break; default: error = EINVAL; |