]> git.baikalelectronics.ru Git - kernel.git/commit
mtdblock: tolerate corrected bit-flips
authorBang Li <libang.linuxer@gmail.com>
Tue, 28 Mar 2023 16:30:12 +0000 (00:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:07:35 +0000 (12:07 +0200)
commit0d1cd5a7527c5131968643b12949099eeaf96693
treeffe3c9f4a507bdc1282febfe72afa040754c0010
parent6811be24594da416e5404f51c511ebce6d9a7951
mtdblock: tolerate corrected bit-flips

commit 0c3089601f064d80b3838eceb711fcac04bceaad upstream.

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: ac22948c1340 ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/mtdblock.c