--- zzzz-none-000/linux-4.4.60/drivers/mtd/nand/nand_ecc.c 2017-04-08 07:53:53.000000000 +0000 +++ wasp-540e-714/linux-4.4.60/drivers/mtd/nand/nand_ecc.c 2019-07-03 09:21:34.000000000 +0000 @@ -507,7 +507,7 @@ return 1; /* error in ECC data; no action needed */ pr_err("%s: uncorrectable ECC error\n", __func__); - return -1; + return -EBADMSG; } EXPORT_SYMBOL(__nand_correct_data);