From: Vasily Averin Date: Fri, 24 Jan 2020 06:10:47 +0000 (+0300) Subject: help_next should increase position index X-Git-Tag: v4.9.215~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=217e72075fe5dbda6f7a8f589f5b4ae90d72ff14;p=platform%2Fkernel%2Flinux-amlogic.git help_next should increase position index [ Upstream commit 9f198a2ac543eaaf47be275531ad5cbd50db3edf ] 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 Signed-off-by: Mike Marshall Signed-off-by: Sasha Levin --- diff --git a/fs/orangefs/orangefs-debugfs.c b/fs/orangefs/orangefs-debugfs.c index 0748a26..7d7df00 100644 --- a/fs/orangefs/orangefs-debugfs.c +++ b/fs/orangefs/orangefs-debugfs.c @@ -304,6 +304,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;