]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5dbcb47719cfb74155549ca40005e185ca61be54
treedd81c3013fbd0a812798eea33d8423ed78d68668
parent059a2e15aace06d0cddd849102e1c05c5aa5a4d0
ubi: Fix seq_file usage in detailed_erase_block_info debugfs file

7e2b4b82dbbb ("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: e0d3bf009282 ("ubi: Add debugfs file for tracking PEB state")
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/debug.c