aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-05-29 17:46:37 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-06-07 00:34:55 +0000
commita1ef0386c94f9e2aa42f4443ea04d8f6c7931aff (patch)
treecad8b7ae19088b7b9109f237814fe3401cb6b76c
parent2c2035ca3d125a1fc8b62d9942993a7d9803f236 (diff)
downloadsrc-a1ef0386c94f9e2aa42f4443ea04d8f6c7931aff.tar.gz
src-a1ef0386c94f9e2aa42f4443ea04d8f6c7931aff.zip
Fix up macro use in lim_cur
(cherry picked from commit dde5c031ed0d93d080442b26133e9ea800bbcd22)
-rw-r--r--sys/sys/resourcevar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/resourcevar.h b/sys/sys/resourcevar.h
index e83b170ca291..d1c9e6d4985f 100644
--- a/sys/sys/resourcevar.h
+++ b/sys/sys/resourcevar.h
@@ -135,7 +135,7 @@ rlim_t lim_cur(struct thread *td, int which);
int _which = (which); \
if (__builtin_constant_p(which) && which != RLIMIT_DATA && \
which != RLIMIT_STACK && which != RLIMIT_VMEM) { \
- _rlim = td->td_limit->pl_rlimit[which].rlim_cur; \
+ _rlim = _td->td_limit->pl_rlimit[_which].rlim_cur; \
} else { \
_rlim = lim_cur(_td, _which); \
} \