linux-stable/drivers/thermal
Lukasz Luba 7a474350d8 thermal/core/fair share: Lock the thermal zone while looping over instances
commit fef05776eb upstream.

The tz->lock must be hold during the looping over the instances in that
thermal zone. This lock was missing in the governor code since the
beginning, so it's hard to point into a particular commit.

CC: stable@vger.kernel.org # 4.4+
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210422153624.6074-2-lukasz.luba@arm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-19 10:08:32 +02:00
..
broadcom
intel
qcom thermal: qcom-spmi-temp-alarm: Don't suppress negative temp 2020-09-09 19:12:29 +02:00
samsung
st
tegra
ti-soc-thermal thermal: ti-soc-thermal: Fix bogus thermal shutdowns for omap4430 2020-09-09 19:12:29 +02:00
armada_thermal.c
clock_cooling.c
cpu_cooling.c thermal/drivers/cpufreq_cooling: Update cpufreq_state only if state has changed 2021-01-06 14:48:35 +01:00
da9062-thermal.c
db8500_thermal.c
devfreq_cooling.c
dove_thermal.c
fair_share.c thermal/core/fair share: Lock the thermal zone while looping over instances 2021-05-19 10:08:32 +02:00
gov_bang_bang.c
hisi_thermal.c
imx_thermal.c
Kconfig
kirkwood_thermal.c
Makefile
max77620_thermal.c
mtk_thermal.c
of-thermal.c thermal: thermal_of: Fix error return code of thermal_of_populate_bind_params() 2021-05-19 10:08:24 +02:00
power_allocator.c
qoriq_thermal.c
rcar_gen3_thermal.c
rcar_thermal.c thermal: rcar_thermal: Handle probe error gracefully 2020-10-01 13:17:44 +02:00
rockchip_thermal.c
spear_thermal.c
step_wise.c
tango_thermal.c
thermal-generic-adc.c
thermal_core.c
thermal_core.h
thermal_helpers.c
thermal_hwmon.c
thermal_hwmon.h
thermal_mmio.c
thermal_sysfs.c thermal/core: Add NULL pointer check before using cooling device stats 2021-04-07 14:47:40 +02:00
uniphier_thermal.c
user_space.c
zx2967_thermal.c