From owner-svn-src-all@FreeBSD.ORG Sun Dec 26 01:42:52 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77FF11065673; Sun, 26 Dec 2010 01:42:52 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6807A8FC1F; Sun, 26 Dec 2010 01:42:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oBQ1gqOC098846; Sun, 26 Dec 2010 01:42:52 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oBQ1gqjD098844; Sun, 26 Dec 2010 01:42:52 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <201012260142.oBQ1gqjD098844@svn.freebsd.org> From: Alan Cox Date: Sun, 26 Dec 2010 01:42:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216702 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Dec 2010 01:42:52 -0000 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);