Date: Mon, 20 Dec 2010 23:41:32 +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: r216607 - head/sys/dev/cxgb/ulp/tom Message-ID: <201012202341.oBKNfWVr098266@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: alc Date: Mon Dec 20 23:41:31 2010 New Revision: 216607 URL: http://svn.freebsd.org/changeset/base/216607 Log: The local variable "rv" is still required by vm_fault_hold_user_pages(). Modified: head/sys/dev/cxgb/ulp/tom/cxgb_vm.c Modified: head/sys/dev/cxgb/ulp/tom/cxgb_vm.c ============================================================================== --- head/sys/dev/cxgb/ulp/tom/cxgb_vm.c Mon Dec 20 23:06:57 2010 (r216606) +++ head/sys/dev/cxgb/ulp/tom/cxgb_vm.c Mon Dec 20 23:41:31 2010 (r216607) @@ -66,7 +66,7 @@ vm_fault_hold_user_pages(vm_map_t map, v int count, vm_prot_t prot) { vm_offset_t end, va; - int faults; + int faults, rv; pmap_t pmap; vm_page_t m, *pages; @@ -124,8 +124,8 @@ vm_fault_hold_user_pages(vm_map_t map, v * trigger a fault where neccessary */ for (pages = mp, va = addr; va < end; va += PAGE_SIZE, pages++) { - if (*pages == NULL && vm_fault_hold(map, va, prot, - VM_FAULT_NORMAL, pages) != KERN_SUCCESS) + if (*pages == NULL && (rv = vm_fault_hold(map, va, prot, + VM_FAULT_NORMAL, pages)) != KERN_SUCCESS) goto error; } return (0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012202341.oBKNfWVr098266>