Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dac36981 authored by hujianyang's avatar hujianyang Committed by Artem Bityutskiy
Browse files

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: default avatarhujianyang <hujianyang@huawei.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent 604b592e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
	}