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

Commit 1cfb7271 authored by Dan Carpenter's avatar Dan Carpenter Committed by Artem Bityutskiy
Browse files

UBIFS: fix assertion



The asserts here never check anything because it uses '|' instead of
'&'.  Now if the flags are not set it prints a warning a a stack trace.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent 485802a6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -939,8 +939,8 @@ static int find_dirtiest_idx_leb(struct ubifs_info *c)
	}
	dbg_find("LEB %d, dirty %d and free %d flags %#x", lp->lnum, lp->dirty,
		 lp->free, lp->flags);
	ubifs_assert(lp->flags | LPROPS_TAKEN);
	ubifs_assert(lp->flags | LPROPS_INDEX);
	ubifs_assert(lp->flags & LPROPS_TAKEN);
	ubifs_assert(lp->flags & LPROPS_INDEX);
	return lnum;
}