aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/oprofile/oprofile_perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/oprofile/oprofile_perf.c')
-rw-r--r--drivers/oprofile/oprofile_perf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/oprofile/oprofile_perf.c b/drivers/oprofile/oprofile_perf.c
index ebb40cb87474..f3d3df229a43 100644
--- a/drivers/oprofile/oprofile_perf.c
+++ b/drivers/oprofile/oprofile_perf.c
@@ -84,6 +84,7 @@ static int op_create_counter(int cpu, int event)
84 if (IS_ERR(pevent)) { 84 if (IS_ERR(pevent)) {
85 ret = PTR_ERR(pevent); 85 ret = PTR_ERR(pevent);
86 } else if (pevent->state != PERF_EVENT_STATE_ACTIVE) { 86 } else if (pevent->state != PERF_EVENT_STATE_ACTIVE) {
87 perf_event_release_kernel(pevent);
87 pr_warning("oprofile: failed to enable event %d " 88 pr_warning("oprofile: failed to enable event %d "
88 "on CPU %d\n", event, cpu); 89 "on CPU %d\n", event, cpu);
89 ret = -EBUSY; 90 ret = -EBUSY;