Commit 8bf70920 authored by Vasily Averin's avatar Vasily Averin Committed by David S. Miller
Browse files

vcc_seq_next should increase position index

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

https://bugzilla.kernel.org/show_bug.cgi?id=206283


Signed-off-by: default avatarVasily Averin <vvs@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 66018a10
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -134,7 +134,6 @@ static void vcc_seq_stop(struct seq_file *seq, void *v)
static void *vcc_seq_next(struct seq_file *seq, void *v, loff_t *pos)
{
	v = vcc_walk(seq, 1);
	if (v)
	(*pos)++;
	return v;
}