summaryrefslogtreecommitdiff
path: root/samples/bpf/test_current_task_under_cgroup_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'samples/bpf/test_current_task_under_cgroup_user.c')
-rw-r--r--samples/bpf/test_current_task_under_cgroup_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/test_current_task_under_cgroup_user.c b/samples/bpf/test_current_task_under_cgroup_user.c
index 2259f997a26c..f082d6ac59f0 100644
--- a/samples/bpf/test_current_task_under_cgroup_user.c
+++ b/samples/bpf/test_current_task_under_cgroup_user.c
@@ -32,7 +32,7 @@ int main(int argc, char **argv)
cg2 = create_and_get_cgroup(CGROUP_PATH);
- if (!cg2)
+ if (cg2 < 0)
goto err;
if (bpf_map_update_elem(map_fd[0], &idx, &cg2, BPF_ANY)) {