Remove redundant suser() check.
This commit is contained in:
parent
c83afe7be9
commit
be4c5ad025
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127006
@ -1060,10 +1060,6 @@ munlock(td, uap)
|
||||
if (end <= start)
|
||||
return (EINVAL);
|
||||
|
||||
error = suser(td);
|
||||
if (error)
|
||||
return (error);
|
||||
|
||||
error = vm_map_unwire(&td->td_proc->p_vmspace->vm_map, start, end,
|
||||
VM_MAP_WIRE_USER|VM_MAP_WIRE_NOHOLES);
|
||||
return (error == KERN_SUCCESS ? 0 : ENOMEM);
|
||||
|
Loading…
Reference in New Issue
Block a user