aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_event_perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_event_perf.c')
-rw-r--r--kernel/trace/trace_event_perf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/trace/trace_event_perf.c b/kernel/trace/trace_event_perf.c
index fdeeb5c49627..fee3752ae8f6 100644
--- a/kernel/trace/trace_event_perf.c
+++ b/kernel/trace/trace_event_perf.c
@@ -298,7 +298,9 @@ static int perf_ftrace_function_register(struct perf_event *event)
298static int perf_ftrace_function_unregister(struct perf_event *event) 298static int perf_ftrace_function_unregister(struct perf_event *event)
299{ 299{
300 struct ftrace_ops *ops = &event->ftrace_ops; 300 struct ftrace_ops *ops = &event->ftrace_ops;
301 return unregister_ftrace_function(ops); 301 int ret = unregister_ftrace_function(ops);
302 ftrace_free_filter(ops);
303 return ret;
302} 304}
303 305
304static void perf_ftrace_function_enable(struct perf_event *event) 306static void perf_ftrace_function_enable(struct perf_event *event)