mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
c521efd170
commit
29bf4a5e3f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue