Skip to content

Commit 73f2f37

Browse files
chenhengqigregkh
authored andcommitted
bpf: Fix comment for helper bpf_current_task_under_cgroup()
commit 5861701 upstream. Fix the descriptions of the return values of helper bpf_current_task_under_cgroup(). Fixes: c6b5fb8 ("bpf: add documentation for eBPF helpers (42-50)") Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20220310155335.1278783-1-hengqi.chen@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9080517 commit 73f2f37

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • include/uapi/linux
  • tools/include/uapi/linux

include/uapi/linux/bpf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,8 +1490,8 @@ union bpf_attr {
14901490
* Return
14911491
* The return value depends on the result of the test, and can be:
14921492
*
1493-
* * 0, if current task belongs to the cgroup2.
1494-
* * 1, if current task does not belong to the cgroup2.
1493+
* * 1, if current task belongs to the cgroup2.
1494+
* * 0, if current task does not belong to the cgroup2.
14951495
* * A negative error code, if an error occurred.
14961496
*
14971497
* long bpf_skb_change_tail(struct sk_buff *skb, u32 len, u64 flags)

tools/include/uapi/linux/bpf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,8 +1490,8 @@ union bpf_attr {
14901490
* Return
14911491
* The return value depends on the result of the test, and can be:
14921492
*
1493-
* * 0, if current task belongs to the cgroup2.
1494-
* * 1, if current task does not belong to the cgroup2.
1493+
* * 1, if current task belongs to the cgroup2.
1494+
* * 0, if current task does not belong to the cgroup2.
14951495
* * A negative error code, if an error occurred.
14961496
*
14971497
* long bpf_skb_change_tail(struct sk_buff *skb, u32 len, u64 flags)

0 commit comments

Comments
 (0)