WSL2-Linux-Kernel/drivers/devfreq
Miaoqian Lin 01121e39ef PM / devfreq: exynos-ppmu: Fix refcount leak in of_get_devfreq_events
commit f44b799603 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: f262f28c14 ("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>
2022-07-07 17:53:27 +02:00
..
event PM / devfreq: exynos-ppmu: Fix refcount leak in of_get_devfreq_events 2022-07-07 17:53:27 +02:00
Kconfig PM / devfreq: imx8m-ddrc: Remove DEVFREQ_GOV_SIMPLE_ONDEMAND dependency 2021-05-21 13:16:21 +09:00
Makefile
devfreq-event.c
devfreq.c devfreq: use HZ macros 2021-09-08 11:50:26 -07:00
exynos-bus.c
governor.h PM / devfreq: Remove the invalid description for get_target_freq 2021-04-08 13:14:51 +09:00
governor_passive.c PM / devfreq: passive: Fix get_target_freq when not using required-opp 2021-06-24 10:37:35 +09:00
governor_performance.c
governor_powersave.c
governor_simpleondemand.c
governor_userspace.c PM / devfreq: userspace: Use DEVICE_ATTR_RW macro 2021-06-17 17:08:46 +09:00
imx-bus.c PM / devfreq: imx-bus: Remove imx_bus_get_dev_status 2021-05-21 13:16:10 +09:00
imx8m-ddrc.c PM / devfreq: imx8m-ddrc: Remove unneeded of_match_ptr() 2021-04-08 13:14:51 +09:00
rk3399_dmc.c PM / devfreq: rk3399_dmc: Disable edev on remove() 2022-06-09 10:22:41 +02:00
tegra30-devfreq.c PM / devfreq: tegra30: Support thermal cooling 2021-05-21 13:16:10 +09:00