]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firmware: imx-scu: fix OF node leak in .probe()
authorJoe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Tue, 24 Dec 2024 03:34:56 +0000 (12:34 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Mar 2025 20:58:59 +0000 (21:58 +0100)
commit177deffb75bed255ee32be4d3fce42597336f217
tree67d99318a5ac1a1827b16fc0380791e06914ee3f
parentf4a60d360d9114b5085701a3702a0102b0d6d846
firmware: imx-scu: fix OF node leak in .probe()

[ Upstream commit fbf10b86f6057cf79300720da4ea4b77e6708b0d ]

imx_scu_probe() calls of_parse_phandle_with_args(), but does not
release the OF node reference obtained by it. Add a of_node_put() call
after done with the node.

Fixes: f25a066d1a07 ("firmware: imx-scu: Support one TX and one RX")
Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/imx/imx-scu.c