Author: kib Date: Mon Mar 28 19:44:54 2011 New Revision: 220114 URL: http://svn.freebsd.org/changeset/base/220114
Log: Fix the check for vm_map_remove() error. Pointed out by: alc MFC after: 2 weeks Modified: head/sys/kern/subr_uio.c Modified: head/sys/kern/subr_uio.c ============================================================================== --- head/sys/kern/subr_uio.c Mon Mar 28 19:42:21 2011 (r220113) +++ head/sys/kern/subr_uio.c Mon Mar 28 19:44:54 2011 (r220114) @@ -506,7 +506,7 @@ copyout_unmap(struct thread *td, vm_offs map = &td->td_proc->p_vmspace->vm_map; size = (vm_size_t)round_page(sz); - if (!vm_map_remove(map, addr, addr + size)) + if (vm_map_remove(map, addr, addr + size) != KERN_SUCCESS) return (EINVAL); return (0); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"