diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-05-26 11:28:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-07-07 18:52:18 +0300 |
commit | e65027fdebbacd40595e96ef7b5d2418f71bddf2 (patch) | |
tree | fa147345a36f03a7203ab553d99604ad25861654 /arch/s390 | |
parent | 653bdcd833b7505987bbda852144c8b6a4b2ab3a (diff) | |
download | linux-e65027fdebbacd40595e96ef7b5d2418f71bddf2.tar.xz |
PM / devfreq: exynos-ppmu: Fix refcount leak in of_get_devfreq_events
commit f44b799603a9b5d2e375b0b2d54dd0b791eddfc2 upstream.
of_get_child_by_name() returns a node pointer with refcount
incremented, we should use of_node_put() on it when done.
This function only calls of_node_put() in normal path,
missing it in error paths.
Add missing of_node_put() to avoid refcount leak.
Fixes: f262f28c1470 ("PM / devfreq: event: Add devfreq_event class")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/s390')
0 files changed, 0 insertions, 0 deletions