android_kernel_motorola_sm6225/drivers/thermal
Stefan Mavrodiev 9025adf37e thermal_hwmon: Sanitize thermal_zone type
[ Upstream commit 8c7aa184281c01fc26f319059efb94725012921d ]

When calling thermal_add_hwmon_sysfs(), the device type is sanitized by
replacing '-' with '_'. However tz->type remains unsanitized. Thus
calling thermal_hwmon_lookup_by_type() returns no device. And if there is
no device, thermal_remove_hwmon_sysfs() fails with "hwmon device lookup
failed!".

The result is unregisted hwmon devices in the sysfs.

Fixes: 409ef0baca ("thermal_hwmon: Sanitize attribute name passed to hwmon")

Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-11 18:21:19 +02:00
..
broadcom thermal: bcm2835: Fix crash in bcm2835_thermal_debugfs 2019-04-20 09:15:56 +02:00
int340x_thermal thermal/int340x_thermal: fix mode setting 2019-04-20 09:15:56 +02:00
qcom drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER 2019-06-15 11:54:02 +02:00
samsung thermal: samsung: Fix incorrect check after code merge 2019-04-20 09:15:56 +02:00
st
tegra - Error path bug fix for overflow tests (Dan) 2018-06-12 18:28:00 -07:00
ti-soc-thermal thermal: ti-soc-thermal: remove dead code 2018-07-27 14:43:01 -07:00
armada_thermal.c thermal: armada: fix legacy validity test sense 2018-12-21 14:15:22 +01:00
clock_cooling.c
cpu_cooling.c
da9062-thermal.c thermal: da9062/61: Prevent hardware access during system suspend 2018-11-13 11:08:31 -08:00
db8500_thermal.c
devfreq_cooling.c
dove_thermal.c
fair_share.c
gov_bang_bang.c
hisi_thermal.c
imx_thermal.c Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal 2018-08-16 10:21:18 -07:00
intel_bxt_pmic_thermal.c
intel_pch_thermal.c
intel_powerclamp.c thermal/intel_powerclamp: fix truncated kthread name 2019-04-20 09:15:56 +02:00
intel_quark_dts_thermal.c
intel_soc_dts_iosf.c
intel_soc_dts_iosf.h
intel_soc_dts_thermal.c x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:17:53 +02:00
Kconfig Thermal: Intel SoC DTS: Translate IO-APIC GSI number to linux irq number 2018-07-26 16:02:48 +08:00
kirkwood_thermal.c
Makefile
max77620_thermal.c
mtk_thermal.c
of-thermal.c thermal: of-thermal: disable passive polling when thermal zone is disabled 2018-08-20 12:00:40 -07:00
power_allocator.c
qcom-spmi-temp-alarm.c
qoriq_thermal.c thermal: qoriq: Switch to SPDX identifier 2018-08-20 11:32:55 -07:00
rcar_gen3_thermal.c thermal: rcar_gen3_thermal: disable interrupt in .remove 2019-06-15 11:54:02 +02:00
rcar_thermal.c thermal: rcar_thermal: Prevent doing work after unbind 2018-11-13 11:08:31 -08:00
rockchip_thermal.c
spear_thermal.c
step_wise.c
tango_thermal.c
thermal-generic-adc.c thermal: generic-adc: Fix adc to temp interpolation 2019-02-12 19:47:19 +01:00
thermal_core.c thermal: Fix use-after-free when unregistering thermal zone device 2019-10-11 18:21:19 +02:00
thermal_core.h
thermal_helpers.c
thermal_hwmon.c thermal_hwmon: Sanitize thermal_zone type 2019-10-11 18:21:19 +02:00
thermal_hwmon.h thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set 2019-02-12 19:47:21 +01:00
thermal_sysfs.c thermal: Fix locking in cooling device sysfs update cur_state 2019-02-12 19:47:03 +01:00
uniphier_thermal.c
user_space.c
x86_pkg_temp_thermal.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
zx2967_thermal.c