Skip to content

Commit b5d1301

Browse files
Jianyun GaoKernel Patches Daemon
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]>
1 parent e5828a2 commit b5d1301

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)