Re: [PATCH] mtd: rawnand: fsl_ifc: allocate shared ctrl with devm_kzalloc

From: Miquel Raynal

Date: Mon Oct 12 2026 - 14:28:45 EST


On Mon, 28 Sep 2026 13:07:29 -0700, Rosen Penev wrote:
> Allocate the shared fsl_ifc_nand_ctrl structure against the controller
> device, which outlives all NAND child devices, so it is freed
> automatically. This drops the manual kfree() and the broken chip
> counter that was decremented in remove() but never incremented
> anywhere, leaking the structure and leaving the freed pointer in
> ctrl->nand on re-probe.
>
> [...]

Applied to nand/next, thanks!

[1/1] mtd: rawnand: fsl_ifc: allocate shared ctrl with devm_kzalloc
commit: 104f277e8a469f71ac3c74a0e9ebb8bf64c3fa06

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