mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-06-19 23:28:29 +02:00
c0435a971e
Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 36663
12 lines
311 B
Diff
12 lines
311 B
Diff
--- a/drivers/mtd/nand/nand_ecc.c
|
|
+++ b/drivers/mtd/nand/nand_ecc.c
|
|
@@ -507,7 +507,7 @@ int __nand_correct_data(unsigned char *b
|
|
return 1; /* error in ECC data; no action needed */
|
|
|
|
pr_err("%s: uncorrectable ECC error", __func__);
|
|
- return -1;
|
|
+ return -EBADMSG;
|
|
}
|
|
EXPORT_SYMBOL(__nand_correct_data);
|
|
|