Re: [PATCH 0/2] ARM: imx: fix device_node refcount leaks in src.c

From: Frank . Li

Date: Mon Jun 29 2026 - 15:59:36 EST


From: Frank Li <Frank.Li@xxxxxxx>


On Wed, 10 Jun 2026 15:06:23 +1000, Weigang He wrote:
> arch/arm/mach-imx/src.c leaks the device_node references taken by
> of_find_compatible_node() in two __init functions: imx_src_init() leaks
> the "fsl,imx51-src" node, and imx7_src_init() leaks the "fsl,imx7d-src"
> and "fsl,imx7d-gpc" nodes (the first one twice, because np is reused for
> the second lookup without a put). of_iomap() does not take ownership of
> the node, so these are one-shot device_node refcount leaks per boot.
>
> [...]

Applied, thanks!

[1/2] ARM: imx: fix device_node refcount leak in imx_src_init()
commit: 936407c3563ac745cbbb9953c0cf2472128a22f4
[2/2] ARM: imx: fix device_node refcount leaks in imx7_src_init()
commit: 3de939b2ac843d56d88e2ab1e1b1f667cba9e1d4

Best regards,
--
Frank Li <Frank.Li@xxxxxxx>