ftrace: fix setting of pos in read_pipe
authorSteven Rostedt <rostedt@goodmis.org>
Mon, 12 May 2008 19:21:01 +0000 (21:21 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 19:57:01 +0000 (21:57 +0200)
commit4823ed7eadf35e4b57ce581327e21d39585f1f32
treefb5b568b52f8757ecd9d314be6cacd25c71d7433
parent2f1dafe50cc4e58a239fd81bd47f87f32042a1ee
ftrace: fix setting of pos in read_pipe

In resetting the iterator in read_pipe, the reset of pos was
postitioned in the wrong location with respect to the memset
operation. The current code sets pos, incorrectly, to zero.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/trace/trace.c