kernel-ark/drivers/devfreq
Samuel Holland 5cf79c2938 PM / devfreq: Strengthen check for freq_table
Since commit ea572f8160 ("PM / devfreq: Change return type of
devfreq_set_freq_table()"), all devfreq devices are expected to have a
valid freq_table. The devfreq core unconditionally dereferences
freq_table in the sysfs code and in get_freq_range().

Therefore, we need to ensure that freq_table is both non-null and
non-empty (length is > 0). If either check fails, replace the table
using set_freq_table() or return the error.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2021-10-27 14:22:12 +09:00
..
event devfreq: exynos-ppmu: simplify parsing event-type from DT 2021-10-27 14:22:12 +09:00
Kconfig PM / devfreq: imx8m-ddrc: Remove DEVFREQ_GOV_SIMPLE_ONDEMAND dependency 2021-05-21 13:16:21 +09:00
Makefile PM / devfreq: tegra20: Deprecate in a favor of emc-stat based driver 2020-11-23 16:01:13 +09: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: Strengthen check for freq_table 2021-10-27 14:22:12 +09:00
exynos-bus.c Merge branches 'pm-devfreq' and 'pm-tools' 2020-12-15 15:27:16 +01:00
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 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: Add governor attribute flag for specifc sysfs nodes 2020-10-26 11:46:54 +09:00
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: Simplify with dev_err_probe() 2021-04-08 13:14:50 +09:00
tegra30-devfreq.c PM / devfreq: tegra30: Support thermal cooling 2021-05-21 13:16:10 +09:00