diff options
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 874f2893cff..f804b407d43 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -2898,6 +2898,10 @@ static int tracing_release_pipe(struct inode *inode, struct file *file) | |||
2898 | else | 2898 | else |
2899 | cpumask_clear_cpu(iter->cpu_file, tracing_reader_cpumask); | 2899 | cpumask_clear_cpu(iter->cpu_file, tracing_reader_cpumask); |
2900 | 2900 | ||
2901 | |||
2902 | if (iter->trace->pipe_open) | ||
2903 | iter->trace->pipe_close(iter); | ||
2904 | |||
2901 | mutex_unlock(&trace_types_lock); | 2905 | mutex_unlock(&trace_types_lock); |
2902 | 2906 | ||
2903 | free_cpumask_var(iter->started); | 2907 | free_cpumask_var(iter->started); |