Re: [PATCH] mtd: rawnand: ndfc: clean up the NAND chip if registration fails
From: Miquel Raynal
Date: Fri Dec 04 2026 - 16:34:14 EST
On Mon, 30 Nov 2026 00:13:53 +0700, Cong Nguyen wrote:
> If mtd_device_register() fails in ndfc_chip_init(), the probe fails and
> ndfc_remove() never runs, so nothing calls nand_cleanup() for the chip
> that nand_scan() set up.
>
> Call nand_cleanup() when mtd_device_register() fails.
>
>
> [...]
Applied to nand/next, thanks!
[1/1] mtd: rawnand: ndfc: clean up the NAND chip if registration fails
commit: 7993ca038bda746868193046edb11c18e2a07aaa
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