The vmspace->vm_daddr is constant until freed, there is no need
to hold lock while accessing it. Approved by: kib (mentor)
This commit is contained in:
parent
ae8e775b82
commit
cabce2bf19
@ -898,9 +898,7 @@ svr4_sys_ulimit(td, uap)
|
||||
|
||||
if (r == -1)
|
||||
r = 0x7fffffff;
|
||||
mtx_lock(&Giant); /* XXX */
|
||||
r += (long) vm->vm_daddr;
|
||||
mtx_unlock(&Giant);
|
||||
if (r < 0)
|
||||
r = 0x7fffffff;
|
||||
*retval = r;
|
||||
|
Loading…
x
Reference in New Issue
Block a user