kernel: update kernel 3.18 to version 3.18.23
[openwrt/staging/chunkeey.git] / target / linux / generic / patches-3.18 / 451-mtd-nand-fix-return-code-of-nand_correct_data-function.patch
1 --- a/drivers/mtd/nand/nand_ecc.c
2 +++ b/drivers/mtd/nand/nand_ecc.c
3 @@ -507,7 +507,7 @@ int __nand_correct_data(unsigned char *b
4 return 1; /* error in ECC data; no action needed */
5
6 pr_err("%s: uncorrectable ECC error\n", __func__);
7 - return -1;
8 + return -EBADMSG;
9 }
10 EXPORT_SYMBOL(__nand_correct_data);
11