aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/eba.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/eba.c')
-rw-r--r--drivers/mtd/ubi/eba.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c
index 9f87c99189a9..8e8226744320 100644
--- a/drivers/mtd/ubi/eba.c
+++ b/drivers/mtd/ubi/eba.c
@@ -418,7 +418,7 @@ retry:
418 * may try to recover data. FIXME: but this is 418 * may try to recover data. FIXME: but this is
419 * not implemented. 419 * not implemented.
420 */ 420 */
421 if (err == UBI_IO_BAD_VID_HDR) { 421 if (err == UBI_IO_BAD_HDR) {
422 ubi_warn("corrupted VID header at PEB " 422 ubi_warn("corrupted VID header at PEB "
423 "%d, LEB %d:%d", pnum, vol_id, 423 "%d, LEB %d:%d", pnum, vol_id,
424 lnum); 424 lnum);
@@ -961,7 +961,7 @@ write_error:
961 */ 961 */
962static int is_error_sane(int err) 962static int is_error_sane(int err)
963{ 963{
964 if (err == -EIO || err == -ENOMEM || err == UBI_IO_BAD_VID_HDR || 964 if (err == -EIO || err == -ENOMEM || err == UBI_IO_BAD_HDR ||
965 err == -ETIMEDOUT) 965 err == -ETIMEDOUT)
966 return 0; 966 return 0;
967 return 1; 967 return 1;