1
0
Fork 0
remarkable-linux/drivers/thermal/int340x_thermal
Hans de Goede b1d0907c6f thermal: int3403_thermal: Fix NULL pointer deref on module load / probe
[ Upstream commit 13b86f50ea ]

Starting with kernel 4.17 thermal_cooling_device_register() will call the
get_max_state() op during register.

Since we deref priv->priv in int3403_get_max_state() this means we must
set priv->priv before calling thermal_cooling_device_register().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-21 04:02:47 +09:00
..
Kconfig Thermal / ACPI / video: add INT3406 thermal driver 2016-05-11 02:15:31 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
acpi_thermal_rel.c Thermal/int340x: Fix few typos and kernel warn message 2017-08-08 21:36:34 +08:00
acpi_thermal_rel.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
int340x_thermal_zone.c thermal: int340x: New Interface to read trip and notify 2016-09-27 14:37:14 +08:00
int340x_thermal_zone.h thermal: int340x: New Interface to read trip and notify 2016-09-27 14:37:14 +08:00
int3400_thermal.c thermal: int3400_thermal: fix error handling in int3400_thermal_probe() 2018-04-12 12:32:21 +02:00
int3402_thermal.c thermal: int340x: New Interface to read trip and notify 2016-09-27 14:37:14 +08:00
int3403_thermal.c thermal: int3403_thermal: Fix NULL pointer deref on module load / probe 2018-06-21 04:02:47 +09:00
int3406_thermal.c Thermal: int3406_thermal: fix thermal sysfs I/F 2017-09-01 09:03:29 +08:00
processor_thermal_device.c thermal: int340x_thermal: Constify attribute_group structures. 2017-08-08 16:54:08 +08:00