mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Unlock the VM lock at the end of munlock() instead of locking it again.
This commit is contained in:
parent
874468957d
commit
12635f9c89
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76974
@ -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…
Reference in New Issue
Block a user