Commit d5fd4496 authored by Vasily Averin's avatar Vasily Averin Committed by Greg Kroah-Hartman

help_next should increase position index

[ Upstream commit 9f198a2a ]

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=206283Signed-off-by: default avatarVasily Averin <[email protected]>
Signed-off-by: default avatarMike Marshall <[email protected]>
Signed-off-by: default avatarSasha Levin <[email protected]>
parent 588f2bf8
......@@ -273,6 +273,7 @@ static void *help_start(struct seq_file *m, loff_t *pos)
static void *help_next(struct seq_file *m, void *v, loff_t *pos)
{
(*pos)++;
gossip_debug(GOSSIP_DEBUGFS_DEBUG, "help_next: start\n");
return NULL;
......
Markdown is supported
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