linux/drivers/thermal
Eduardo Valentin 6b2aa51d69 thermal: check for invalid trip setup when registering thermal device
This patch adds an extra check in the data structure while registering
a thermal device. The check is to avoid registering zones with a number
of trips greater than zero, but with no .get_trip_temp nor .get_trip_type
callbacks. Receiving such data structure may end in wrong data access.

Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Reviewed-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2013-01-17 15:09:22 +08:00
..
cpu_cooling.c thermal: cpu cooling: use const parameter while registering 2012-11-22 15:59:47 +08:00
db8500_cpufreq_cooling.c thermal: db8500: Use of_match_ptr() macro in db8500_cpufreq_cooling.c 2013-01-04 15:40:03 +08:00
db8500_thermal.c thermal: db8500: Use of_match_ptr() macro in db8500_thermal.c 2013-01-04 15:39:32 +08:00
exynos_thermal.c thermal: exynos: Use of_match_ptr() macro 2013-01-04 15:38:55 +08:00
fair_share.c thermal: fair_share: Add missing static storage class specifiers 2012-11-05 14:00:10 +08:00
Kconfig Thermal: exynos: Add sysfs node supporting exynos's emulation mode. 2013-01-04 15:22:37 +08:00
Makefile Thermal: Add ST-Ericsson DB8500 thermal driver. 2012-11-15 20:50:34 +08:00
rcar_thermal.c thermal: rcar: add .get_trip_type/temp and .notify support 2013-01-04 15:37:45 +08:00
spear_thermal.c drivers/thermal/spear_thermal.c: use devm_clk_get 2013-01-04 15:38:25 +08:00
step_wise.c step_wise: Unify the code for both throttle and dethrottle 2013-01-04 15:22:37 +08:00
thermal_core.h Thermal: Move thermal_instance to thermal_core.h 2012-11-05 13:56:32 +08:00
thermal_sys.c thermal: check for invalid trip setup when registering thermal device 2013-01-17 15:09:22 +08:00
user_space.c thermal: user_space: Add missing static storage class specifiers 2012-11-05 14:00:11 +08:00