]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
libbpf: Fix the incorrect reference to the memlock_rlim variable in the comment.
authorJianyun Gao <jianyungao89@gmail.com>
Mon, 27 Oct 2025 03:20:08 +0000 (11:20 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 28 Oct 2025 17:28:53 +0000 (10:28 -0700)
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
tools/lib/bpf/bpf.c

index 339b197972374f02fffa0a72d39f2921e5fe02de..b66f5fbfbbb291c1d6b5b2c98613712f2b0b8115 100644 (file)
@@ -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;