Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68645
b: refs/heads/master
c: 8d2d401
h: refs/heads/master
i:
  68643: ae4b49e
v: v3
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Oct 14, 2007
1 parent f762a97 commit db255ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8bc22961966b845aa5f965be30771902146c2fcc
refs/heads/master: 8d2d4011f1398d984819c65043abb559c451a3c8
5 changes: 4 additions & 1 deletion trunk/drivers/mtd/ubi/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,16 @@ static int torture_peb(const struct ubi_device *ubi, int pnum)
err = patt_count;

out:
if (err == UBI_IO_BITFLIPS || err == -EBADMSG)
if (err == UBI_IO_BITFLIPS || err == -EBADMSG) {
/*
* If a bit-flip or data integrity error was detected, the test
* has not passed because it happened on a freshly erased
* physical eraseblock which means something is wrong with it.
*/
ubi_err("read problems on freshly erased PEB %d, must be bad",
pnum);
err = -EIO;
}
vfree(buf);
return err;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mtd/ubi/wl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,7 @@ static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk,
return err;
}

ubi_err("failed to erase PEB %d, error %d", pnum, err);
kfree(wl_wrk);
kmem_cache_free(wl_entries_slab, e);

Expand Down

0 comments on commit db255ea

Please sign in to comment.