diff options
Diffstat (limited to 'kernel/perf_event.c')
-rw-r--r-- | kernel/perf_event.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c index e50543db642a..e491fb087939 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c | |||
@@ -4767,9 +4767,7 @@ int perf_event_init_task(struct task_struct *child) | |||
4767 | * We dont have to disable NMIs - we are only looking at | 4767 | * We dont have to disable NMIs - we are only looking at |
4768 | * the list, not manipulating it: | 4768 | * the list, not manipulating it: |
4769 | */ | 4769 | */ |
4770 | list_for_each_entry_rcu(event, &parent_ctx->event_list, event_entry) { | 4770 | list_for_each_entry(event, &parent_ctx->group_list, group_entry) { |
4771 | if (event != event->group_leader) | ||
4772 | continue; | ||
4773 | 4771 | ||
4774 | if (!event->attr.inherit) { | 4772 | if (!event->attr.inherit) { |
4775 | inherited_all = 0; | 4773 | inherited_all = 0; |