]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: imx: scu-irq: fix OF node leak in
authorPeng Fan <peng.fan@nxp.com>
Fri, 17 Oct 2025 01:56:24 +0000 (09:56 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 27 Oct 2025 06:43:47 +0000 (14:43 +0800)
commitee67247843a2b62d1473cfa4df300e69b5190ccf
tree155a350f10010aa1ed7bd23edc155ea3911fc275
parent3a8660878839faadb4f1a6dd72c3179c1df56787
firmware: imx: scu-irq: fix OF node leak in

imx_scu_enable_general_irq_channel() calls of_parse_phandle_with_args(),
but does not release the OF node reference. Add a of_node_put() call
to release the reference.

Fixes: 851826c7566e ("firmware: imx: enable imx scu general irq function")
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/firmware/imx/imx-scu-irq.c