aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-01-18 10:02:55 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-01-18 10:02:55 +0000
commite191b632d16fae5bfe3ea0eb76b816c3e8e4b949 (patch)
tree042b9043b17fb32c22f2d4d23c4e1662854298fd /target
parent4dc9ff12500c81bcdc0fc3994c0611f1e3ef7878 (diff)
downloadupstream-e191b632d16fae5bfe3ea0eb76b816c3e8e4b949.tar.gz
upstream-e191b632d16fae5bfe3ea0eb76b816c3e8e4b949.tar.bz2
upstream-e191b632d16fae5bfe3ea0eb76b816c3e8e4b949.zip
generic-2.6: fix nand_correct_data() return code on 2.6.28
SVN-Revision: 14086
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic-2.6/patches-2.6.28/090-mtd_fix_nand_correct_data_return_code.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.28/090-mtd_fix_nand_correct_data_return_code.patch b/target/linux/generic-2.6/patches-2.6.28/090-mtd_fix_nand_correct_data_return_code.patch
new file mode 100644
index 0000000000..be2c7d7323
--- /dev/null
+++ b/target/linux/generic-2.6/patches-2.6.28/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);
+