--- zzzz-none-000/linux-3.10.107/drivers/mtd/nand/nand_ecc.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/mtd/nand/nand_ecc.c 2021-02-04 17:41:59.000000000 +0000 @@ -506,8 +506,8 @@ if ((bitsperbyte[b0] + bitsperbyte[b1] + bitsperbyte[b2]) == 1) return 1; /* error in ECC data; no action needed */ - pr_err("%s: uncorrectable ECC error", __func__); - return -1; + pr_err("%s: uncorrectable ECC error\n", __func__); + return -EBADMSG; } EXPORT_SYMBOL(__nand_correct_data);