Skip to content

Commit f3c539f

Browse files
vaveringregkh
authored andcommitted
help_next should increase position index
[ Upstream commit 9f198a2 ] 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]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 47f4408 commit f3c539f

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
@@ -305,6 +305,7 @@ static void *help_start(struct seq_file *m, loff_t *pos)
305305

306306
static void *help_next(struct seq_file *m, void *v, loff_t *pos)
307307
{
308+
(*pos)++;
308309
gossip_debug(GOSSIP_DEBUGFS_DEBUG, "help_next: start\n");
309310

310311
return NULL;

0 commit comments

Comments
 (0)