diff options
Diffstat (limited to 'drivers/mtd/ubi/scan.c')
-rw-r--r-- | drivers/mtd/ubi/scan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c index b847745394b4..93361eadab8d 100644 --- a/drivers/mtd/ubi/scan.c +++ b/drivers/mtd/ubi/scan.c | |||
@@ -864,7 +864,9 @@ static int process_eb(struct ubi_device *ubi, struct ubi_scan_info *si, | |||
864 | } | 864 | } |
865 | } | 865 | } |
866 | 866 | ||
867 | /* Both UBI headers seem to be fine */ | 867 | if (ec_corr) |
868 | ubi_warn("valid VID header but corrupted EC header at PEB %d", | ||
869 | pnum); | ||
868 | err = ubi_scan_add_used(ubi, si, pnum, ec, vidh, bitflips); | 870 | err = ubi_scan_add_used(ubi, si, pnum, ec, vidh, bitflips); |
869 | if (err) | 871 | if (err) |
870 | return err; | 872 | return err; |