linux-yocto/drivers/soc/fsl
Javier Carrasco e8351aa0d5 soc: fsl: rcpm: fix missing of_node_put() in copy_ippdexpcr1_setting()
commit c9f1efabf8 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@vger.kernel.org
Fixes: e95f287dee ("soc: fsl: handle RCPM errata A-008646 on SoC LS1021A")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20241013-rcpm-of_node_put-v1-1-9a8e55a01eae@gmail.com
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-05 14:02:57 +01:00
..
dpio
qbman - A series from Hervé Codina that bring support for the newer version 2024-09-03 07:01:36 +00:00
qe soc: fsl: cpm1: qmc: Set the ret error code on platform_get_irq() failure 2024-12-05 14:02:57 +01:00
dpaa2-console.c
guts.c
Kconfig
Makefile
rcpm.c soc: fsl: rcpm: fix missing of_node_put() in copy_ippdexpcr1_setting() 2024-12-05 14:02:57 +01:00