generic-2.6: fix nand_correct_data() return code on 2.6.28
SVN-Revision: 14086
This commit is contained in:
parent
4dc9ff1250
commit
e191b632d1
1 changed files with 12 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
||||||
|
--- a/drivers/mtd/nand/nand_ecc.c
|
||||||
|
+++ b/drivers/mtd/nand/nand_ecc.c
|
||||||
|
@@ -492,8 +492,7 @@ int nand_correct_data(struct mtd_info *m
|
||||||
|
if ((bitsperbyte[b0] + bitsperbyte[b1] + bitsperbyte[b2]) == 1)
|
||||||
|
return 1; /* error in ecc data; no action needed */
|
||||||
|
|
||||||
|
- printk(KERN_ERR "uncorrectable error : ");
|
||||||
|
- return -1;
|
||||||
|
+ return -EBADMSG;
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(nand_correct_data);
|
||||||
|
|
Loading…
Reference in a new issue