Re: [PATCH] mtdblock: tolerate corrected bit-flips

From: Richard Weinberger
Date: Tue Mar 28 2023 - 09:22:00 EST


Hi!

----- Ursprüngliche Mail -----
> libang.linuxer@xxxxxxxxx wrote on Thu, 23 Mar 2023 22:03:50 +0800:
>
>> mtd_read() may return -EUCLEAN in case of corrected bit-flips.This
>> particular condition should not be treated like an error.
>
> I'm fine with the patch, Richard, are you okay as well?

Hm yes. I see the bug. I think it broke about 10 years ago
by e47f68587b82 ("mtd: check for max_bitflips in mtd_read_oob()").

In the early day I'd expect someone to hit this bug but I guess
on the last 10 years mtdblock had no real users.

Thanks,
//richard