android_kernel_xiaomi_sm8450/drivers/thermal/broadcom
Zheng Yongjun 79098339ac thermal/drivers/broadcom: Fix potential NULL dereference in sr_thermal_probe
[ Upstream commit e20d136ec7d6f309989c447638365840d3424c8e ]

platform_get_resource() may return NULL, add proper check to
avoid potential NULL dereferencing.

Fixes: 250e211057 ("thermal: broadcom: Add Stingray thermal driver")
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Link: https://lore.kernel.org/r/20220425092929.90412-1-zhengyongjun3@huawei.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:21:11 +02:00
..
bcm2711_thermal.c thermal/drivers/bcm2711: Don't clamp temperature at zero 2022-06-09 10:21:11 +02:00
bcm2835_thermal.c thermal: bcm2835: no need to check return value of debugfs_create functions 2019-06-21 15:46:33 +02:00
brcmstb_thermal.c thermal: brcmstb_thermal: Register different ops per process 2020-01-27 11:41:08 +01:00
Kconfig thermal: Add BCM2711 thermal driver 2020-01-27 11:41:08 +01:00
Makefile thermal: Add BCM2711 thermal driver 2020-01-27 11:41:08 +01:00
ns-thermal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sr-thermal.c thermal/drivers/broadcom: Fix potential NULL dereference in sr_thermal_probe 2022-06-09 10:21:11 +02:00