summaryrefslogtreecommitdiff
path: root/tools/lib
diff options
context:
space:
mode:
authorJianyun Gao <jianyungao89@gmail.com>2025-10-27 11:20:08 +0800
committerAndrii Nakryiko <andrii@kernel.org>2025-10-28 10:28:53 -0700
commit54c134f379ee2816f60130d44e0e386c261dff45 (patch)
treea361e5036408ce1c020c43e2e7813f868b6298fa /tools/lib
parent4f361895ae65675c7a3ee339883d72ae9a2121e9 (diff)
libbpf: Fix the incorrect reference to the memlock_rlim variable in the comment.
The variable "memlock_rlim_max" referenced in the comment does not exist. I think that the author probably meant the variable "memlock_rlim". So, correct it. Signed-off-by: Jianyun Gao <jianyungao89@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20251027032008.738944-1-jianyungao89@gmail.com
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/bpf/bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c
index 339b19797237..b66f5fbfbbb2 100644
--- a/tools/lib/bpf/bpf.c
+++ b/tools/lib/bpf/bpf.c
@@ -154,7 +154,7 @@ int bump_rlimit_memlock(void)
memlock_bumped = true;
- /* zero memlock_rlim_max disables auto-bumping RLIMIT_MEMLOCK */
+ /* zero memlock_rlim disables auto-bumping RLIMIT_MEMLOCK */
if (memlock_rlim == 0)
return 0;