Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Jianyun Gao and committed by
Andrii Nakryiko
54c134f3 4f361895

+1 -1
+1 -1
tools/lib/bpf/bpf.c
··· 154 154 155 155 memlock_bumped = true; 156 156 157 - /* zero memlock_rlim_max disables auto-bumping RLIMIT_MEMLOCK */ 157 + /* zero memlock_rlim disables auto-bumping RLIMIT_MEMLOCK */ 158 158 if (memlock_rlim == 0) 159 159 return 0; 160 160