Correct the order of the arguments to vm_fault_quick_hold_pages().

This commit is contained in:
Alan Cox
2010-12-26 01:42:52 +00:00
parent 0b47b37621
commit 5b2d228c44
+1 -1
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);