tmp_suning_uos_patched/drivers/devfreq
Miaoqian Lin e65027fdeb 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: 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:52:18 +02:00
..
event PM / devfreq: exynos-ppmu: Fix refcount leak in of_get_devfreq_events 2022-07-07 17:52:18 +02:00
devfreq-event.c PM / devfreq: event: Change prototype of devfreq_event_get_edev_by_phandle function 2020-09-29 17:50:10 +09:00
devfreq.c PM / devfreq: Add missing error code in devfreq_add_device() 2021-07-14 16:56:11 +02:00
exynos-bus.c PM / devfreq: event: Change prototype of devfreq_event_get_edev_by_phandle function 2020-09-29 17:50:10 +09:00
governor_passive.c PM / devfreq: passive: fix compiler warning 2019-08-26 21:37:37 +09:00
governor_performance.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
governor_powersave.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
governor_simpleondemand.c PM / devfreq: Change to DEVFREQ_GOV_UPDATE_INTERVAL event name 2020-03-25 08:35:03 +09:00
governor_userspace.c PM / devfreq: Use constant name of userspace governor 2020-03-25 08:35:03 +09:00
governor.h PM / devfreq: Fix a typo in a comment 2020-03-25 08:35:03 +09:00
imx-bus.c PM / devfreq: imx-bus: Fix inconsistent IS_ERR and PTR_ERR 2020-05-28 18:02:40 +09:00
imx8m-ddrc.c PM / devfreq: imx8m-ddrc: Fix inconsistent IS_ERR and PTR_ERR 2019-12-31 03:09:57 +09:00
Kconfig PM / devfreq: Add generic imx bus scaling driver 2020-05-28 18:02:39 +09:00
Makefile PM / devfreq: Add generic imx bus scaling driver 2020-05-28 18:02:39 +09:00
rk3399_dmc.c PM / devfreq: rk3399_dmc: Disable edev on remove() 2022-06-09 10:20:57 +02:00
tegra20-devfreq.c PM / devfreq: Introduce driver for NVIDIA Tegra20 2019-08-24 20:11:12 +09:00
tegra30-devfreq.c PM / devfreq: tegra30: Improve initial hardware resetting 2020-09-29 17:50:10 +09:00