--- zzzz-none-000/linux-4.4.271/drivers/mtd/nand/nand_ecc.c 2021-06-03 06:22:09.000000000 +0000 +++ maple-fsgw-759/linux-4.4.271/drivers/mtd/nand/nand_ecc.c 2023-12-20 10:37:17.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);