UBIFS: Fix dump messages in ubifs_dump_lprops
Subsystems (2)
PATCH 1/1 UBIFS: Fix dump messages in ubifs_dump_lprops
Function ubifs_read_one_lp will not set @lp and returns an error when ubifs_read_one_lp failed. We should not perform ubifs_dump_lprop in this case because @lp is not initialized as we wanted.
Signed-off-by hujianyang <[email protected]>
--- fs/ubifs/debug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
fs/ubifs/debug.c +3 -1
@@ -745,8 +745,10 @@ void ubifs_dump_lprops(struct ubifs_info *c)for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) { err =ubifs_read_one_lp (c, lnum, &lp); -if (err) +if (err) {ubifs_err ("cannot read lprops for LEB %d" , lnum); +continue ; + }ubifs_dump_lprop (c, &lp); }
Signature · 1 line
1.8.1.4
Artem Bityutskiy
AppliedQuoted 6 lines · hujianyang
Function
ubifs_read_one_lpwill not set @lp and returns an error whenubifs_read_one_lpfailed. We should not performubifs_dump_lpropin this case because @lp is not initialized as we wanted.Signed-off-by hujianyang <[email protected]>
Pushed to linux-ubifs.git, thanks!
Signature · 2 lines
Best Regards, Artem Bityutskiy