]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
help_next should increase position index
authorVasily Averin <vvs@virtuozzo.com>
Fri, 24 Jan 2020 06:10:47 +0000 (09:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 14:42:43 +0000 (15:42 +0100)
commit217e72075fe5dbda6f7a8f589f5b4ae90d72ff14
tree9e920227a4559678b80f2a42a7b124b522960010
parentf0a5ee420099f71b92a4017788ca234a1de26a51
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>
fs/orangefs/orangefs-debugfs.c