linux-stable/drivers/thermal/broadcom
Phil Elwell 35122495a8 thermal: bcm2835: Fix crash in bcm2835_thermal_debugfs
"cat /sys/kernel/debug/bcm2835_thermal/regset" causes a NULL pointer
dereference in bcm2835_thermal_debugfs. The driver makes use of the
implementation details of the thermal framework to retrieve a pointer
to its private data from a struct thermal_zone_device, and gets it
wrong - leading to the crash. Instead, store its private data as the
drvdata and retrieve the thermal_zone_device pointer from it.

Fixes: bcb7dd9ef2 ("thermal: bcm2835: add thermal driver for bcm2835 SoC")

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2019-03-18 22:11:06 +08:00
..
Kconfig thermal: broadcom: Add Stingray thermal driver 2019-02-05 16:35:57 -08:00
Makefile thermal: broadcom: Add Stingray thermal driver 2019-02-05 16:35:57 -08:00
bcm2835_thermal.c thermal: bcm2835: Fix crash in bcm2835_thermal_debugfs 2019-03-18 22:11:06 +08:00
brcmstb_thermal.c Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal 2019-01-05 16:01:16 -08:00
ns-thermal.c
sr-thermal.c thermal: broadcom: Add Stingray thermal driver 2019-02-05 16:35:57 -08:00