summaryrefslogtreecommitdiff
path: root/kernel/events
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2016-06-14 11:14:34 +0200
committerIngo Molnar <mingo@kernel.org>2016-06-14 11:14:34 +0200
commit3559ff9650224a4af6b777a5df786f521f66db5a (patch)
treeff1d9ec0e27ab4b452f1d8b12485d21102900597 /kernel/events
parent70e0d117f2502f19517be03a64b3c513f31b3cdb (diff)
parentdb06d759d6cf903aeda8c107fd3abd366dd80200 (diff)
Merge branch 'linus' into perf/core, to pick up fixes before merging new changes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/events')
-rw-r--r--kernel/events/core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 05b923e2111a..9345028f2a82 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -3905,10 +3905,8 @@ static void _free_event(struct perf_event *event)
if (event->ctx)
put_ctx(event->ctx);
- if (event->pmu) {
- exclusive_event_destroy(event);
- module_put(event->pmu->module);
- }
+ exclusive_event_destroy(event);
+ module_put(event->pmu->module);
call_rcu(&event->rcu_head, free_event_rcu);
}