svn commit: r216607 - head/sys/dev/cxgb/ulp/tom
Alan Cox
alc at FreeBSD.org
Mon Dec 20 23:41:32 UTC 2010
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);
More information about the svn-src-all
mailing list