summaryrefslogtreecommitdiffstats
path: root/fs/orangefs
diff options
context:
space:
mode:
authorVasily Averin <vvs@virtuozzo.com>2020-01-24 09:10:47 +0300
committerMike Marshall <hubcap@omnibond.com>2020-02-04 15:22:04 -0500
commit9f198a2ac543eaaf47be275531ad5cbd50db3edf (patch)
treefef688c538de1542fc01a74b9daf88605bbb3afb /fs/orangefs
parentd5226fa6dbae0569ee43ecfc08bdcd6770fc4755 (diff)
downloadlinux-9f198a2ac543eaaf47be275531ad5cbd50db3edf.tar.gz
linux-9f198a2ac543eaaf47be275531ad5cbd50db3edf.tar.bz2
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;