Skip to content

Commit

Permalink
tracing: Only call pipe_close if pipe_close is defined
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Dec 9, 2009
1 parent c521efd commit 29bf4a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 29bf4a5

Please sign in to comment.