Message ID | 20230905154651.GA24940@redhat.com (mailing list archive) |
---|---|
State | Accepted |
Commit | c12e785e8648ad98272dd5bee3b0bce714f6093f |
Delegated to: | BPF |
Headers | show |
Series | bpf: task_group_seq_get_next: misc cleanups | expand |
diff --git a/kernel/bpf/task_iter.c b/kernel/bpf/task_iter.c index 1589ec3faded..2264870ae3fc 100644 --- a/kernel/bpf/task_iter.c +++ b/kernel/bpf/task_iter.c @@ -82,7 +82,7 @@ static struct task_struct *task_group_seq_get_next(struct bpf_iter_seq_task_comm common->pid_visiting = *tid; - if (skip_if_dup_files && task->files == task->group_leader->files) { + if (skip_if_dup_files && next_task->files == next_task->group_leader->files) { task = next_task; goto retry; }