Skip to content

Commit

Permalink
help_next should increase position index
Browse files Browse the repository at this point in the history
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: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
  • Loading branch information
Vasily Averin authored and Mike Marshall committed Feb 4, 2020
1 parent d5226fa commit 9f198a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/orangefs/orangefs-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9f198a2

Please sign in to comment.