linux/drivers/thermal
Viresh Kumar 3ea3217cf9 thermal: cpu_cooling: Check OPP for errors
It is possible for dev_pm_opp_find_freq_exact() to return errors. It was
all fine earlier as dev_pm_opp_get_voltage() had a check within it to
check for invalid OPPs, but dev_pm_opp_put() doesn't have any similar
checks and the callers need to make sure OPP is valid before calling
them.

Also update the later dev_warn_ratelimited() to not print the error
message as the OPP is guaranteed to be valid now.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2017-03-13 10:06:55 +08:00
..
int340x_thermal thermal: int340x_thermal: use permission-specific DEVICE_ATTR variants 2016-11-23 10:05:25 +08:00
qcom
samsung thermal: exynos: Remove parsing unused samsung,tmu_cal_mode property 2017-02-18 17:22:27 -08:00
st
tegra
ti-soc-thermal thermal: arm: dra752: Remove all TSHUT related definitions 2017-02-18 17:44:18 -08:00
Kconfig thermal: zx2967: add thermal driver for ZTE's zx2967 family 2017-02-18 16:36:12 -08:00
Makefile thermal: zx2967: add thermal driver for ZTE's zx2967 family 2017-02-18 16:36:12 -08:00
armada_thermal.c
clock_cooling.c thermal: convert clock cooling to use an IDA 2017-01-04 12:47:28 +08:00
cpu_cooling.c thermal: cpu_cooling: Check OPP for errors 2017-03-13 10:06:55 +08:00
db8500_cpufreq_cooling.c
db8500_thermal.c thermal: db8500: Fix module autoload 2016-11-23 10:07:35 +08:00
devfreq_cooling.c thermal: devfreq: Check OPP for errors 2017-03-13 10:06:42 +08:00
dove_thermal.c
fair_share.c
gov_bang_bang.c
hisi_thermal.c
imx_thermal.c thermal: imx: Fix possible NULL dereference. 2017-02-18 17:27:36 -08:00
intel_bxt_pmic_thermal.c
intel_pch_thermal.c thermal: intel_pch_thermal: Support skylake PCH 100 series thermal 2016-11-23 10:05:52 +08:00
intel_powerclamp.c sched/headers: Prepare for new header dependencies before moving code to <uapi/linux/sched/types.h> 2017-03-02 08:42:27 +01:00
intel_quark_dts_thermal.c
intel_soc_dts_iosf.c
intel_soc_dts_iosf.h
intel_soc_dts_thermal.c
kirkwood_thermal.c
max77620_thermal.c thermal: max77620: Fix module autoload 2016-11-23 10:07:35 +08:00
mtk_thermal.c thermal: mtk_thermal: Staticise a number of data variables 2017-02-18 17:44:29 -08:00
of-thermal.c
power_allocator.c
qcom-spmi-temp-alarm.c thermal: qcom-spmi: Treat reg property as a single cell 2016-11-23 10:07:35 +08:00
qoriq_thermal.c
rcar_gen3_thermal.c thermal: rcar_gen3_thermal: Add R-Car Gen3 thermal driver 2017-01-19 20:15:28 -08:00
rcar_thermal.c Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux 2016-10-12 11:05:23 -07:00
rockchip_thermal.c thermal: rockchip: fixes the conversion table 2017-01-16 20:30:49 -08:00
spear_thermal.c
step_wise.c
tango_thermal.c thermal: tango: Fix module autoload 2016-11-23 10:07:35 +08:00
thermal-generic-adc.c
thermal_core.c Merge branches 'thermal-core', 'thermal-soc', 'thermal-intel' and 'ida-conversion' into next 2017-02-22 15:35:06 +08:00
thermal_core.h thermal: core: move cooling device sysfs to thermal_sysfs.c 2016-11-23 10:06:12 +08:00
thermal_helpers.c thermal: core: move slop and offset helpers to thermal_helpers.c 2016-11-23 10:06:12 +08:00
thermal_hwmon.c Revert "thermal: thermal_hwmon: Convert to hwmon_device_register_with_info()" 2017-01-25 09:51:08 +08:00
thermal_hwmon.h
thermal_sysfs.c thermal: sysfs: use kcalloc() instead of kzalloc() 2016-11-23 10:06:12 +08:00
user_space.c
x86_pkg_temp_thermal.c thermal/x86 pkg temp: Convert to hotplug state machine 2016-11-30 10:25:47 +08:00
zx2967_thermal.c thermal: zx2967: add thermal driver for ZTE's zx2967 family 2017-02-18 16:36:12 -08:00