diff options
author | alc <alc@FreeBSD.org> | 2010-12-26 01:42:52 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2010-12-26 01:42:52 +0000 |
commit | a2053caad03d51e2d0a788d4910f7e1a81145981 (patch) | |
tree | a314e6a4fcb10babc53c9b3427d6fa4568a281d2 /sys | |
parent | d835374cc6aa0f3ea74aa41627b98c2f43ebb4a3 (diff) | |
download | FreeBSD-src-a2053caad03d51e2d0a788d4910f7e1a81145981.zip FreeBSD-src-a2053caad03d51e2d0a788d4910f7e1a81145981.tar.gz |
Correct the order of the arguments to vm_fault_quick_hold_pages().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_cow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_cow.c b/sys/kern/uipc_cow.c index f7ef798..12404b5 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); |