]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerShawn Guo <shawnguo@kernel.org>
Tue, 18 Feb 2025 03:22:50 +0000 (11:22 +0800)
commitfbf10b86f6057cf79300720da4ea4b77e6708b0d
tree100bd9bce08c526214951c2d0268dcdbbb3945b9
parent2014c95afecee3e76ca4a56956a936e23283f05b
firmware: imx-scu: fix OF node leak in .probe()

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>
drivers/firmware/imx/imx-scu.c