]> Pileus Git - ~andy/linux/blobdiff - kernel/trace/trace_event_profile.c
Merge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[~andy/linux] / kernel / trace / trace_event_profile.c
index e52784b7b84492b9fb47756db0d62b92a22967ac..8d5c171cc9987d924f9fcfd3328fcb966288b9a0 100644 (file)
@@ -53,8 +53,8 @@ static int ftrace_profile_enable_event(struct ftrace_event_call *event)
 
 fail_buf_nmi:
        if (!total_profile_count) {
-               kfree(trace_profile_buf_nmi);
-               kfree(trace_profile_buf);
+               free_percpu(trace_profile_buf_nmi);
+               free_percpu(trace_profile_buf);
                trace_profile_buf_nmi = NULL;
                trace_profile_buf = NULL;
        }