Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Dec 2010 01:42:52 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216702 - head/sys/kern
Message-ID:  <201012260142.oBQ1gqjD098844@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sun Dec 26 01:42:52 2010
New Revision: 216702
URL: http://svn.freebsd.org/changeset/base/216702

Log:
  Correct the order of the arguments to vm_fault_quick_hold_pages().

Modified:
  head/sys/kern/uipc_cow.c

Modified: head/sys/kern/uipc_cow.c
==============================================================================
--- head/sys/kern/uipc_cow.c	Sat Dec 25 23:54:50 2010	(r216701)
+++ head/sys/kern/uipc_cow.c	Sun Dec 26 01:42:52 2010	(r216702)
@@ -115,7 +115,7 @@ socow_setup(struct mbuf *m0, struct 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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012260142.oBQ1gqjD098844>