Message ID | 1339584138-69914-18-git-send-email-richard@nod.at |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index 004ce89..c4d8273 100644 --- a/drivers/mtd/ubi/wl.c +++ b/drivers/mtd/ubi/wl.c @@ -1821,7 +1821,7 @@ static int self_check_ec(struct ubi_device *ubi, int pnum, int ec) } read_ec = be64_to_cpu(ec_hdr->ec); - if (ec != read_ec) { + if (ec != read_ec && read_ec - ec > 1) { ubi_err("self-check failed for PEB %d", pnum); ubi_err("read EC is %lld, should be %d", read_ec, ec); dump_stack();
Using fastmap the EC value can be differ by 1. FIXME: Find a way to solve this issue Signed-off-by: Richard Weinberger <richard@nod.at> --- drivers/mtd/ubi/wl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)