Re: [PATCH] memory: fsl_ifc: Do not dereference the unset global pointer in probe

From: Krzysztof Kozlowski

Date: Wed Nov 11 2026 - 10:24:25 EST



On Mon, 09 Nov 2026 08:47:08 -0500, Sasha Levin wrote:
> Commit a78ee2e05f7c ("memory: fsl_ifc: Clear fsl_ifc_ctrl_dev on probe failure
> and removal") assigns fsl_ifc_ctrl_dev near the end of probe, but probe still
> reads the IFC revision and fsl_ifc_ctrl_init() still programs the event
> registers before that. Both go through ifc_in32() and ifc_out32(), which take
> the register endianness from fsl_ifc_ctrl_dev, so the first probe dereferences
> a NULL pointer.
>
> [...]

Applied, thanks!

[1/1] memory: fsl_ifc: Do not dereference the unset global pointer in probe
https://git.kernel.org/krzk/linux-mem-ctrl/c/1a509eca07176bc3363031c030d038ca9be9dfc0

Best regards,
--
Krzysztof Kozlowski <krzk@xxxxxxxxxx>