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@xxxxxxxxxxxxx> --- drivers/scsi/snic/snic_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/snic/snic_debugfs.c b/drivers/scsi/snic/snic_debugfs.c index 2b34936..b20c724 100644 --- a/drivers/scsi/snic/snic_debugfs.c +++ b/drivers/scsi/snic/snic_debugfs.c @@ -419,6 +419,7 @@ void snic_stats_debugfs_init(struct snic *snic) static void * snic_trc_seq_next(struct seq_file *sfp, void *data, loff_t *pos) { + (*pos)++; return NULL; } -- 1.8.3.1