libbpf: fix the incorrect reference to the memlock_rlim variable in the comment.
PATCH 1/1 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 <[email protected]>
--- tools/lib/bpf/bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/bpf/bpf.c +1 -1
@@ -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 ;
Signature · 1 line
2.34.1
This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:
Quoted 8 lines · On Mon, 27 Oct 2025 11:20:08 +0800 you wrote:
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 <[email protected]>--- tools/lib/bpf/bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- libbpf: fix the incorrect reference to the memlock_rlim variable in the comment.
https://git.kernel.org/bpf/bpf-next/c/54c134f379ee
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html