diff options
author | emaste <emaste@FreeBSD.org> | 2010-10-18 15:46:58 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2010-10-18 15:46:58 +0000 |
commit | ce878940358e064934cf32c83917ab296594fe75 (patch) | |
tree | 01377eb5cd739b9481b14a7e68809abe091df691 /sys/kern | |
parent | ca3202b6c72045f4d03979a51dbfcffa8f2df445 (diff) | |
download | FreeBSD-src-ce878940358e064934cf32c83917ab296594fe75.zip FreeBSD-src-ce878940358e064934cf32c83917ab296594fe75.tar.gz |
We've already set p = td->td_proc, so use it.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_resource.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 09c8603..0da0075 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -699,8 +699,8 @@ kern_setrlimit(td, which, limp) if (limp->rlim_max > maxssiz) limp->rlim_max = maxssiz; oldssiz = *alimp; - if (td->td_proc->p_sysent->sv_fixlimit != NULL) - td->td_proc->p_sysent->sv_fixlimit(&oldssiz, + if (p->p_sysent->sv_fixlimit != NULL) + p->p_sysent->sv_fixlimit(&oldssiz, RLIMIT_STACK); break; @@ -722,8 +722,8 @@ kern_setrlimit(td, which, limp) limp->rlim_max = 1; break; } - if (td->td_proc->p_sysent->sv_fixlimit != NULL) - td->td_proc->p_sysent->sv_fixlimit(limp, which); + if (p->p_sysent->sv_fixlimit != NULL) + p->p_sysent->sv_fixlimit(limp, which); *alimp = *limp; p->p_limit = newlim; PROC_UNLOCK(p); |