diff --git a/sys/kern/uipc_cow.c b/sys/kern/uipc_cow.c index f7ef798710e7..12404b5621ed 100644 --- a/sys/kern/uipc_cow.c +++ b/sys/kern/uipc_cow.c @@ -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);