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:
parent
4fca8e0f65
commit
70efe1a2fe
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue