diff options
| author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-10-13 15:29:17 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-09 10:32:51 +0100 |
| commit | 305c75f402e8d6e79e50c965f21bc1177d4d3bf0 (patch) | |
| tree | 208c5695ebc543d6e747ada2414882541c3236f5 /drivers/soc | |
| parent | 378ce4e08ca2b1ac7bbf1d57b68643ca4226c5f8 (diff) | |
| download | linux-305c75f402e8d6e79e50c965f21bc1177d4d3bf0.tar.gz linux-305c75f402e8d6e79e50c965f21bc1177d4d3bf0.tar.bz2 linux-305c75f402e8d6e79e50c965f21bc1177d4d3bf0.zip | |
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>
Diffstat (limited to 'drivers/soc')
| -rw-r--r-- | drivers/soc/fsl/rcpm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/fsl/rcpm.c b/drivers/soc/fsl/rcpm.c index 3d0cae30c769..06bd94b29fb3 100644 --- a/drivers/soc/fsl/rcpm.c +++ b/drivers/soc/fsl/rcpm.c @@ -36,6 +36,7 @@ static void copy_ippdexpcr1_setting(u32 val) return; regs = of_iomap(np, 0); + of_node_put(np); if (!regs) return; |
