Skip to content
Commit 039958a5 authored by Vasily Averin's avatar Vasily Averin Committed by Steven Rostedt (VMware)
Browse files

tracing: eval_map_next() should always increase position index

if seq_file .next fuction does not change position index,
read after some lseek can generate unexpected output.

Link: http://lkml.kernel.org/r/7ad85b22-1866-977c-db17-88ac438bc764@virtuozzo.com



Signed-off-by: default avatarVasily Averin <vvs@virtuozzo.com>
[ This is not a bug fix, it just makes it "technically correct"
  which is why I applied it. NULL is only returned on an anomaly
  which triggers a WARN_ON ]
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent e4075e8b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment