aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace_event_profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_event_profile.c b/kernel/trace/trace_event_profile.c
index e52784b7b844..8d5c171cc998 100644
--- a/kernel/trace/trace_event_profile.c
+++ b/kernel/trace/trace_event_profile.c
@@ -53,8 +53,8 @@ static int ftrace_profile_enable_event(struct ftrace_event_call *event)
53 53
54fail_buf_nmi: 54fail_buf_nmi:
55 if (!total_profile_count) { 55 if (!total_profile_count) {
56 kfree(trace_profile_buf_nmi); 56 free_percpu(trace_profile_buf_nmi);
57 kfree(trace_profile_buf); 57 free_percpu(trace_profile_buf);
58 trace_profile_buf_nmi = NULL; 58 trace_profile_buf_nmi = NULL;
59 trace_profile_buf = NULL; 59 trace_profile_buf = NULL;
60 } 60 }