Re: [PATCH 0/2] mtd: spinand: fix nand-no-ecc-engine support

From: Miquel Raynal

Date: Fri Sep 04 2026 - 14:38:03 EST


On Mon, 31 Aug 2026 16:07:16 +0100, Nuno Sá wrote:
> Setting "nand-no-ecc-engine" in DT currently oopses at probe: SPI-NAND
> dereferences nand->ecc.engine unconditionally to test for a pipelined
> engine, but nanddev_get_ecc_engine() leaves that pointer NULL when no
> engine is requested. Patch 1 adds a nand_ecc_is_pipelined() helper to
> the NAND core that folds in the NULL check, and uses it at the three
> affected sites.
>
> [...]

Applied to mtd/fixes, thanks!

[1/2] mtd: spinand: fix NULL pointer dereference with no ECC engine
commit: ea765ae1efb2665da8981eba82b8a72e314af854
[2/2] mtd: spinand: fix zero oobavail when no ECC engine is used
commit: a039958f2b95e6cc7f0e44d40298d17f1c0851c0

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl