[PATCH 1/2] mtd: nand: fix error handling in nand_prog_page_op() #1
Miquel Raynal
miquel.raynal at bootlin.com
Tue Mar 2 16:33:02 GMT 2021
On Fri, 2021-02-05 at 14:27:24 UTC, Sascha Hauer wrote:
> On success chip->legacy.waitfunc() returns the NAND status byte, but on
> failure it returns a negative error code. This was never tested for and
> instead the return value was interpreted as NAND status without error
> checking. Add the missing error check.
>
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel
More information about the linux-mtd
mailing list