diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2020-01-24 09:10:47 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-28 18:36:08 +0300 |
commit | 2329f0eded07c62dbe40d8b523001525e91b99b4 (patch) | |
tree | 530adb1f17736f59397361badd10a25563cefabf | |
parent | c911b13e8b2d3427061c2da6372da987353eddc1 (diff) | |
download | linux-2329f0eded07c62dbe40d8b523001525e91b99b4.tar.xz |
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 <vvs@virtuozzo.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | fs/orangefs/orangefs-debugfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/orangefs/orangefs-debugfs.c b/fs/orangefs/orangefs-debugfs.c index 1c59dff530de..34d1cc98260d 100644 --- a/fs/orangefs/orangefs-debugfs.c +++ b/fs/orangefs/orangefs-debugfs.c @@ -305,6 +305,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; |