diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-01-18 10:02:55 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-01-18 10:02:55 +0000 |
commit | 9e237828e415442f8ee9e5b2f126035037e14761 (patch) | |
tree | f06408217bf483bde857a21f8faddee0f335c561 /target/linux/generic-2.6/patches-2.6.28/090-mtd_fix_nand_correct_data_return_code.patch | |
parent | 97f15b8e222e03849513b9790c41db887f853f7e (diff) | |
download | master-187ad058-9e237828e415442f8ee9e5b2f126035037e14761.tar.gz master-187ad058-9e237828e415442f8ee9e5b2f126035037e14761.tar.bz2 master-187ad058-9e237828e415442f8ee9e5b2f126035037e14761.zip |
[kernel] generic-2.6: fix nand_correct_data() return code on 2.6.28
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14086 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.28/090-mtd_fix_nand_correct_data_return_code.patch')
-rw-r--r-- | target/linux/generic-2.6/patches-2.6.28/090-mtd_fix_nand_correct_data_return_code.patch | 12 |
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); + |