From: Javier Carrasco <javier.carrasco.cruz@xxxxxxxxx> commit c9f1efabf8e3b3ff886a42669f7093789dbeca94 upstream. of_find_compatible_node() requires a call to of_node_put() when the pointer to the node is not required anymore to decrement its refcount and avoid leaking memory. Add the missing call to of_node_put() after the node has been used. Cc: stable@xxxxxxxxxxxxxxx Fixes: e95f287deed2 ("soc: fsl: handle RCPM errata A-008646 on SoC LS1021A") Signed-off-by: Javier Carrasco <javier.carrasco.cruz@xxxxxxxxx> Link: https://lore.kernel.org/r/20241013-rcpm-of_node_put-v1-1-9a8e55a01eae@xxxxxxxxx Signed-off-by: Christophe Leroy <christophe.leroy@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/soc/fsl/rcpm.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/soc/fsl/rcpm.c +++ b/drivers/soc/fsl/rcpm.c @@ -36,6 +36,7 @@ static void copy_ippdexpcr1_setting(u32 return; regs = of_iomap(np, 0); + of_node_put(np); if (!regs) return; Patches currently in stable-queue which might be from javier.carrasco.cruz@xxxxxxxxx are queue-6.12/leds-max5970-fix-unreleased-fwnode_handle-in-probe-f.patch queue-6.12/wifi-brcmfmac-release-root-node-in-all-execution-paths.patch queue-6.12/bluetooth-btbcm-fix-missing-of_node_put-in-btbcm_get.patch queue-6.12/platform-chrome-cros_ec_typec-fix-missing-fwnode-reference-decrement.patch queue-6.12/clocksource-drivers-timer-ti-dm-fix-child-node-refco.patch queue-6.12/mtd-ubi-fix-unreleased-fwnode_handle-in-find_volume_fwnode.patch queue-6.12/soc-fsl-rcpm-fix-missing-of_node_put-in-copy_ippdexpcr1_setting.patch