Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Vasily Averin and committed by
Mike Marshall
9f198a2a d5226fa6

+1
+1
fs/orangefs/orangefs-debugfs.c
··· 273 273 274 274 static void *help_next(struct seq_file *m, void *v, loff_t *pos) 275 275 { 276 + (*pos)++; 276 277 gossip_debug(GOSSIP_DEBUGFS_DEBUG, "help_next: start\n"); 277 278 278 279 return NULL;