Re: [PATCH] memory: fsl_ifc: Clear fsl_ifc_ctrl_dev on probe failure and removal
From: Krzysztof Kozlowski
Date: Tue Nov 03 2026 - 08:43:58 EST
On Sun, 01 Nov 2026 13:08:39 +0100, Krzysztof Kozlowski wrote:
> Global fsl_ifc_ctrl_dev is allocated with devm_kzalloc(), so it is freed
> when probe fails or when the device is unbound, but the exported global
> pointer is never reset. Subsequent calls to fsl_ifc_find() or probing
> of fsl_ifc_nand would then pass the NULL check and dereference freed
> memory. Issue is mostly theoretical, because there are no users/calls
> to fsl_ifc_find().
>
> [...]
Applied, thanks!
[1/1] memory: fsl_ifc: Clear fsl_ifc_ctrl_dev on probe failure and removal
https://git.kernel.org/krzk/linux-mem-ctrl/c/a78ee2e05f7c7dd09e58ea615960105f78dc3c75
Best regards,
--
Krzysztof Kozlowski <krzk@xxxxxxxxxx>