linux/drivers/thermal/broadcom
Zheng Yongjun ef1235c651 thermal/drivers/broadcom: Fix potential NULL dereference in sr_thermal_probe
[ Upstream commit e20d136ec7 ]

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:23:01 +02:00
..
bcm2711_thermal.c
bcm2835_thermal.c
brcmstb_thermal.c
Kconfig
Makefile
ns-thermal.c
sr-thermal.c thermal/drivers/broadcom: Fix potential NULL dereference in sr_thermal_probe 2022-06-09 10:23:01 +02:00