Commit f4d74ef6 authored by Vasily Averin's avatar Vasily Averin Committed by Linus Torvalds
Browse files

kernel/gcov/fs.c: gcov_seq_next() should increase position index

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

Signed-off-by: default avatarVasily Averin <>
Signed-off-by: default avatarAndrew Morton <>
Acked-by: default avatarPeter Oberparleiter <>
Cc: Al Viro <>
Cc: Davidlohr Bueso <>
Cc: Ingo Molnar <>
Cc: Manfred Spraul <>
Cc: NeilBrown <>
Cc: Steven Rostedt <>
Cc: Waiman Long <>

Signed-off-by: default avatarLinus Torvalds <>
parent 3bfa7e14
......@@ -108,9 +108,9 @@ static void *gcov_seq_next(struct seq_file *seq, void *data, loff_t *pos)
struct gcov_iterator *iter = data;
if (gcov_iter_next(iter))
return NULL;
return iter;
Supports Markdown
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