diff options
Diffstat (limited to 'drivers/mtd/ubi/scan.c')
-rw-r--r-- | drivers/mtd/ubi/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c index aed19f33b8f3..b878a7661f5a 100644 --- a/drivers/mtd/ubi/scan.c +++ b/drivers/mtd/ubi/scan.c | |||
@@ -745,7 +745,7 @@ static int process_eb(struct ubi_device *ubi, struct ubi_scan_info *si, | |||
745 | bitflips = 1; | 745 | bitflips = 1; |
746 | else if (err == UBI_IO_PEB_EMPTY) | 746 | else if (err == UBI_IO_PEB_EMPTY) |
747 | return add_to_list(si, pnum, UBI_SCAN_UNKNOWN_EC, &si->erase); | 747 | return add_to_list(si, pnum, UBI_SCAN_UNKNOWN_EC, &si->erase); |
748 | else if (err == UBI_IO_BAD_EC_HDR) { | 748 | else if (err == UBI_IO_BAD_HDR) { |
749 | /* | 749 | /* |
750 | * We have to also look at the VID header, possibly it is not | 750 | * We have to also look at the VID header, possibly it is not |
751 | * corrupted. Set %bitflips flag in order to make this PEB be | 751 | * corrupted. Set %bitflips flag in order to make this PEB be |
@@ -813,7 +813,7 @@ static int process_eb(struct ubi_device *ubi, struct ubi_scan_info *si, | |||
813 | return err; | 813 | return err; |
814 | else if (err == UBI_IO_BITFLIPS) | 814 | else if (err == UBI_IO_BITFLIPS) |
815 | bitflips = 1; | 815 | bitflips = 1; |
816 | else if (err == UBI_IO_BAD_VID_HDR || | 816 | else if (err == UBI_IO_BAD_HDR || |
817 | (err == UBI_IO_PEB_FREE && ec_corr)) { | 817 | (err == UBI_IO_PEB_FREE && ec_corr)) { |
818 | /* VID header is corrupted */ | 818 | /* VID header is corrupted */ |
819 | err = add_to_list(si, pnum, ec, &si->corr); | 819 | err = add_to_list(si, pnum, ec, &si->corr); |