]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soc: fsl: rcpm: fix missing of_node_put() in copy_ippdexpcr1_setting()
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Sun, 13 Oct 2024 13:29:17 +0000 (15:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:51:17 +0000 (19:51 +0100)
commit41979fbb7cedeb61cefc26293e7338eb887d6b54
treea13eca1416b8ccff221c952606da5f2a9ab956bb
parented228b74d8a500380150965d5becabf9a1e33141
soc: fsl: rcpm: fix missing of_node_put() in copy_ippdexpcr1_setting()

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@vger.kernel.org
Fixes: e95f287deed2 ("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>
drivers/soc/fsl/rcpm.c