diff options
author | kib <kib@FreeBSD.org> | 2011-03-28 19:44:54 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-03-28 19:44:54 +0000 |
commit | 7b2d837e2c12f95b0bc02a27e3a7027b83462360 (patch) | |
tree | ab73a39f3e031df180d0e77380de6c8140b0cb5e | |
parent | 067233645bc62aec8b8f4ff426c3b1d065af39f4 (diff) | |
download | FreeBSD-src-7b2d837e2c12f95b0bc02a27e3a7027b83462360.zip FreeBSD-src-7b2d837e2c12f95b0bc02a27e3a7027b83462360.tar.gz |
Fix the check for vm_map_remove() error.
Pointed out by: alc
MFC after: 2 weeks
-rw-r--r-- | sys/kern/subr_uio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_uio.c b/sys/kern/subr_uio.c index 7a824c1..9385dc4 100644 --- a/sys/kern/subr_uio.c +++ b/sys/kern/subr_uio.c @@ -506,7 +506,7 @@ copyout_unmap(struct thread *td, vm_offset_t addr, size_t sz) 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); |