aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-openmoko-2.6.30.4/090-mtd_fix_nand_correct_data_return_code.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/linux/linux-openmoko-2.6.30.4/090-mtd_fix_nand_correct_data_return_code.patch')
-rw-r--r--recipes/linux/linux-openmoko-2.6.30.4/090-mtd_fix_nand_correct_data_return_code.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes/linux/linux-openmoko-2.6.30.4/090-mtd_fix_nand_correct_data_return_code.patch b/recipes/linux/linux-openmoko-2.6.30.4/090-mtd_fix_nand_correct_data_return_code.patch
new file mode 100644
index 0000000000..be2c7d7323
--- /dev/null
+++ b/recipes/linux/linux-openmoko-2.6.30.4/090-mtd_fix_nand_correct_data_return_code.patch
@@ -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);
+