mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Remove redundant suser() check.
This commit is contained in:
parent
c83afe7be9
commit
be4c5ad025
1 changed files with 0 additions and 4 deletions
|
|
@ -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 a new issue