ubi: Fix seq_file usage in detailed_erase_block_info debugfs file
authorRichard Weinberger <richard@nod.at>
Sat, 2 May 2020 12:48:02 +0000 (14:48 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 17 May 2020 21:38:21 +0000 (23:38 +0200)
commit0e7572cffe442290c347e779bf8bd4306bb0aa7c
treedd81c3013fbd0a812798eea33d8423ed78d68668
parent3c3c32f85b6cc05e5db78693457deff03ac0f434
ubi: Fix seq_file usage in detailed_erase_block_info debugfs file

3bfa7e141b0b ("fs/seq_file.c: seq_read(): add info message about buggy .next functions")
showed that we don't use seq_file correctly.
So make sure that our ->next function always updates the position.

Fixes: 7bccd12d27b7 ("ubi: Add debugfs file for tracking PEB state")
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/debug.c