summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-12-09 12:37:43 -0500
committerSteven Rostedt <rostedt@goodmis.org>2009-12-09 12:47:35 -0500
commit29bf4a5e3fed3dde3eb629a0cb1762c1e9217458 (patch)
tree42a93ba9e1e7d0fb7b1f46382dba9a5245768629 /kernel/trace
parentc521efd1700a8c0f7ce26f011f5eaecca17fabfa (diff)
downloadblackbird-op-linux-29bf4a5e3fed3dde3eb629a0cb1762c1e9217458.tar.gz
blackbird-op-linux-29bf4a5e3fed3dde3eb629a0cb1762c1e9217458.zip
tracing: Only call pipe_close if pipe_close is defined
This fixes a cut and paste error that had pipe_close get called if pipe_open was defined (not pipe_close). Reported-by: Kosaki Motohiro <kosaki.motohiro@jp.fujitsu.com> LKML-Reference: <20091209153204.F4CD.A69D9226@jp.fujitsu.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index f804b407d438..dc937e1baa91 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -2899,7 +2899,7 @@ static int tracing_release_pipe(struct inode *inode, struct file *file)
cpumask_clear_cpu(iter->cpu_file, tracing_reader_cpumask);
- if (iter->trace->pipe_open)
+ if (iter->trace->pipe_close)
iter->trace->pipe_close(iter);
mutex_unlock(&trace_types_lock);
OpenPOWER on IntegriCloud