Fix the check for vm_map_remove() error.
Pointed out by: alc MFC after: 2 weeks
This commit is contained in:
parent
1da7683a7c
commit
cea8f30a54
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220114
@ -506,7 +506,7 @@ copyout_unmap(struct thread *td, vm_offset_t addr, size_t sz)
|
|||||||
map = &td->td_proc->p_vmspace->vm_map;
|
map = &td->td_proc->p_vmspace->vm_map;
|
||||||
size = (vm_size_t)round_page(sz);
|
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 (EINVAL);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
|
Loading…
Reference in New Issue
Block a user