projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64f1607
)
UBI: print a message if ECH is corrupted and VIDH is ok
author
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Sun, 19 Jul 2009 11:03:16 +0000
(14:03 +0300)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Fri, 14 Aug 2009 17:01:35 +0000
(20:01 +0300)
If the EC header is corrupted, but the VID header is OK, UBI accepts the
PEB and treats it as "used". However, generally this should not happen.
Print a warning if this happens.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/scan.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/scan.c
b/drivers/mtd/ubi/scan.c
index b847745394b42d46869cdc892043abe46288809d..93361eadab8d4ad6ce58b3c150e02b90b3ae7b98 100644
(file)
--- 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,
}
}
- /* Both UBI headers seem to be fine */
+ if (ec_corr)
+ ubi_warn("valid VID header but corrupted EC header at PEB %d",
+ pnum);
err = ubi_scan_add_used(ubi, si, pnum, ec, vidh, bitflips);
if (err)
return err;