]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ARM: imx3: Fix CCM node reference leak
authorYuho Choi <dbgh9129@gmail.com>
Thu, 14 May 2026 03:40:04 +0000 (23:40 -0400)
committerFrank Li <Frank.Li@nxp.com>
Mon, 1 Jun 2026 16:17:07 +0000 (12:17 -0400)
commit36d46348eb5fc4bc505cd2290ddd70c25fbe6bb3
tree35c951cf34f6b078054639726f9fb2849d929b7d
parent2430f2080f2a4e45b69befba26ef726d62180bba
ARM: imx3: Fix CCM node reference leak

of_find_compatible_node() returns a referenced device node. The i.MX31
and i.MX35 early init paths use the node to map the CCM registers with
of_iomap(), but never drop the node reference.

Release the node after the mapping is created.

Fixes: 2cf98d12958c ("ARM: imx3: Retrieve the CCM base address from devicetree")
Signed-off-by: Yuho Choi <dbgh9129@gmail.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
arch/arm/mach-imx/mm-imx3.c