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
This commit is contained in:
John Baldwin 2023-02-06 13:51:57 -08:00
parent 4fca8e0f65
commit 70efe1a2fe
2 changed files with 2 additions and 2 deletions

View file

@ -112,7 +112,7 @@ ccp_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;

View file

@ -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;