Correct the order of the arguments to vm_fault_quick_hold_pages().

This commit is contained in:
alc 2010-12-26 01:42:52 +00:00
parent d835374cc6
commit a2053caad0

View File

@ -115,7 +115,7 @@ socow_setup(struct mbuf *m0, struct uio *uio)
/*
* Verify that access to the given address is allowed from user-space.
*/
if (vm_fault_quick_hold_pages(map, uva, len, &pp, 1, VM_PROT_READ) <
if (vm_fault_quick_hold_pages(map, uva, len, VM_PROT_READ, &pp, 1) <
0) {
socow_stats.fail_not_mapped++;
return(0);