]> git.baikalelectronics.ru Git - kernel.git/commit
net: atm: fix update of position index in lec_seq_next
authorColin Ian King <colin.king@canonical.com>
Tue, 27 Oct 2020 11:49:25 +0000 (11:49 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 31 Oct 2020 19:26:30 +0000 (12:26 -0700)
commit07d14b5489c5b7864e96a4d3e92129af0274e717
tree1969f3b7597396243872a4d0cdc3d04b0fc735d6
parenta040e71baadba46d6a65207893cc0126df8b3b57
net: atm: fix update of position index in lec_seq_next

The position index in leq_seq_next is not updated when the next
entry is fetched an no more entries are available. This causes
seq_file to report the following error:

"seq_file: buggy .next function lec_seq_next [lec] did not update
 position index"

Fix this by always updating the position index.

[ Note: this is an ancient 2002 bug, the sha is from the
  tglx/history repo ]

Fixes 4aea2cbff417 ("[ATM]: Move lan seq_file ops to lec.c [1/3]")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20201027114925.21843-1-colin.king@canonical.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/atm/lec.c