mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-18 10:34:24 +08:00
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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
This commit is contained in:
parent
485802a6c5
commit
1cfb727107
@ -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,
|
dbg_find("LEB %d, dirty %d and free %d flags %#x", lp->lnum, lp->dirty,
|
||||||
lp->free, lp->flags);
|
lp->free, lp->flags);
|
||||||
ubifs_assert(lp->flags | LPROPS_TAKEN);
|
ubifs_assert(lp->flags & LPROPS_TAKEN);
|
||||||
ubifs_assert(lp->flags | LPROPS_INDEX);
|
ubifs_assert(lp->flags & LPROPS_INDEX);
|
||||||
return lnum;
|
return lnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user