diff options
author | 2022-05-26 12:28:56 +0400 | |
---|---|---|
committer | 2022-06-30 05:11:17 +0900 | |
commit | f44b799603a9b5d2e375b0b2d54dd0b791eddfc2 (patch) | |
tree | 440c496a612fc3d9b284d731c6ff2c4adf2e6132 /drivers/devfreq/devfreq.c | |
parent | PM / devfreq: passive: Use HZ_PER_KHZ macro in units.h (diff) | |
download | linux-rng-f44b799603a9b5d2e375b0b2d54dd0b791eddfc2.tar.xz linux-rng-f44b799603a9b5d2e375b0b2d54dd0b791eddfc2.zip |
PM / devfreq: exynos-ppmu: Fix refcount leak in of_get_devfreq_events
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>
Diffstat (limited to 'drivers/devfreq/devfreq.c')
0 files changed, 0 insertions, 0 deletions