summaryrefslogtreecommitdiffstats
path: root/fs/orangefs
diff options
context:
space:
mode:
authorVasily Averin <vvs@virtuozzo.com>2020-01-24 07:10:47 +0100
committerMike Marshall <hubcap@omnibond.com>2020-02-04 21:22:04 +0100
commit9f198a2ac543eaaf47be275531ad5cbd50db3edf (patch)
treefef688c538de1542fc01a74b9daf88605bbb3afb /fs/orangefs
parentLinux 5.5 (diff)
downloadlinux-9f198a2ac543eaaf47be275531ad5cbd50db3edf.tar.xz
linux-9f198a2ac543eaaf47be275531ad5cbd50db3edf.zip
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 <vvs@virtuozzo.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r--fs/orangefs/orangefs-debugfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/orangefs/orangefs-debugfs.c b/fs/orangefs/orangefs-debugfs.c
index 25543a966c48..29eaa4544372 100644
--- a/fs/orangefs/orangefs-debugfs.c
+++ b/fs/orangefs/orangefs-debugfs.c
@@ -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;