Skip to content

Commit 9f198a2

Browse files
vaverinhubcapsc
authored andcommitted
help_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: Vasily Averin <[email protected]> Signed-off-by: Mike Marshall <[email protected]>
1 parent d5226fa commit 9f198a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/orangefs/orangefs-debugfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ static void *help_start(struct seq_file *m, loff_t *pos)
273273

274274
static void *help_next(struct seq_file *m, void *v, loff_t *pos)
275275
{
276+
(*pos)++;
276277
gossip_debug(GOSSIP_DEBUGFS_DEBUG, "help_next: start\n");
277278

278279
return NULL;

0 commit comments

Comments
 (0)