6a2092ce20e4a75169c735f8db506f7be99888e3
[librecmc/librecmc-fossil.git] /
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