mtdblock: tolerate corrected bit-flips
authorBang Li <libang.linuxer@gmail.com>
Tue, 28 Mar 2023 16:30:12 +0000 (00:30 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 3 Apr 2023 15:57:59 +0000 (17:57 +0200)
commit0c3089601f064d80b3838eceb711fcac04bceaad
tree06b5851363a1296fa37056f4180fcbb6ac304dc7
parentddbb664b6ab8de7dffa388ae0c88cd18616494e5
mtdblock: tolerate corrected bit-flips

mtd_read() may return -EUCLEAN in case of corrected bit-flips.This
particular condition should not be treated like an error.

Signed-off-by: Bang Li <libang.linuxer@gmail.com>
Fixes: e47f68587b82 ("mtd: check for max_bitflips in mtd_read_oob()")
Cc: <stable@vger.kernel.org> # v3.7
Acked-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230328163012.4264-1-libang.linuxer@gmail.com
drivers/mtd/mtdblock.c