Unlock the VM lock at the end of munlock() instead of locking it again.
This commit is contained in:
parent
c2bd2e9bd5
commit
fd51037384
@ -1062,7 +1062,7 @@ munlock(p, uap)
|
||||
mtx_lock(&vm_mtx);
|
||||
error = vm_map_user_pageable(&p->p_vmspace->vm_map, addr,
|
||||
addr + size, TRUE);
|
||||
mtx_lock(&vm_mtx);
|
||||
mtx_unlock(&vm_mtx);
|
||||
return (error == KERN_SUCCESS ? 0 : ENOMEM);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user