Skip to content

Commit 54c134f

Browse files
Jianyun Gaoanakryiko
authored andcommitted
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]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 4f36189 commit 54c134f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/lib/bpf/bpf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ int bump_rlimit_memlock(void)
154154

155155
memlock_bumped = true;
156156

157-
/* zero memlock_rlim_max disables auto-bumping RLIMIT_MEMLOCK */
157+
/* zero memlock_rlim disables auto-bumping RLIMIT_MEMLOCK */
158158
if (memlock_rlim == 0)
159159
return 0;
160160

0 commit comments

Comments
 (0)