]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: eval_map_next() should always increase position index
authorVasily Averin <vvs@virtuozzo.com>
Fri, 24 Jan 2020 07:03:01 +0000 (10:03 +0300)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 30 Jan 2020 14:46:27 +0000 (09:46 -0500)
commitf8b5d2ca29de6ee5ba56fe9874cdb3cbe7c45684
tree2abfc0f938e70c7b7a9a8d7e59babb44092c33ef
parent544e538dd57094b64093d699386df7317b8d67b4
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: Vasily 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: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c