diff mbox

ftrace/perf_event leak

Message ID 4C7E1F12.8030304@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

Li Zefan Sept. 1, 2010, 9:38 a.m. UTC
None
diff mbox

Patch

diff --git a/kernel/trace/trace_event_perf.c b/kernel/trace/trace_event_perf.c
index 8a2b73f..9d1d1f2 100644
--- a/kernel/trace/trace_event_perf.c
+++ b/kernel/trace/trace_event_perf.c
@@ -161,6 +161,7 @@  void perf_trace_destroy(struct perf_event *p_event)
 		}
 	}
 out:
+	module_put(tp_event->mod);
 	mutex_unlock(&event_mutex);
 }