linux/drivers/devfreq
Vincent Donnefort 2f061fd0c2 PM / devfreq: stopping the governor before device_unregister()
device_release() is freeing the resources before calling the device
specific release callback which is, in the case of devfreq, stopping
the governor.

It is a problem as some governors are using the device resources. e.g.
simpleondemand which is using the devfreq deferrable monitoring work. If it
is not stopped before the resources are freed, it might lead to a use after
free.

Signed-off-by: Vincent Donnefort <vincent.donnefort@arm.com>
Reviewed-by: John Einar Reitan <john.reitan@arm.com>
[cw00.choi: Fix merge conflict]
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
2018-10-02 10:16:41 +09:00
..
event PM / devfreq: Convert to using %pOFn instead of device_node.name 2018-10-02 10:16:41 +09:00
devfreq-event.c PM / devfreq: Convert to using %pOF instead of full_name 2017-08-28 09:15:33 +09:00
devfreq.c PM / devfreq: stopping the governor before device_unregister() 2018-10-02 10:16:41 +09:00
exynos-bus.c PM / devfreq: Define the constant governor name 2017-10-26 17:08:40 +09:00
governor_passive.c PM / devfreq: Define the constant governor name 2017-10-26 17:08:40 +09:00
governor_performance.c PM / devfreq: Don't adjust to user limits in governors 2018-10-02 10:16:41 +09:00
governor_powersave.c PM / devfreq: Don't adjust to user limits in governors 2018-10-02 10:16:41 +09:00
governor_simpleondemand.c PM / devfreq: Don't adjust to user limits in governors 2018-10-02 10:16:41 +09:00
governor_userspace.c PM / devfreq: Don't adjust to user limits in governors 2018-10-02 10:16:41 +09:00
governor.h PM / devfreq: Make update_devfreq() public 2018-10-02 10:16:41 +09:00
Kconfig PM / devfreq: Add dependency on PM_OPP 2017-08-28 10:23:57 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rk3399_dmc.c PM / devfreq: rk3399_dmc: Fix duplicated opp table on reload. 2018-07-18 13:58:39 +09:00
tegra-devfreq.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00