linux/drivers/thermal/qcom
Konrad Dybcio 560d69c975 thermal/drivers/qcom/lmh: Check for SCM availability at probe
commit d9d3490c48 upstream.

Up until now, the necessary scm availability check has not been
performed, leading to possible null pointer dereferences (which did
happen for me on RB1).

Fix that.

Fixes: 53bca371cd ("thermal/drivers/qcom: Add support for LMh driver")
Cc: <stable@vger.kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20240308-topic-rb1_lmh-v2-2-bac3914b0fe3@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-06-16 13:41:33 +02:00
..
Kconfig nvmem: prefix all symbols with NVMEM_ 2022-09-24 14:54:38 +02:00
lmh.c thermal/drivers/qcom/lmh: Check for SCM availability at probe 2024-06-16 13:41:33 +02:00
Makefile thermal/drivers/qcom: Add support for LMh driver 2021-08-18 09:32:25 +02:00
qcom-spmi-adc-tm5.c Char/Misc and other driver changes for 6.1-rc1 2022-10-08 08:56:37 -07:00
qcom-spmi-temp-alarm.c thermal/drivers/qcom/temp-alarm: Fix inaccurate warning for gen2 2022-12-31 13:32:43 +01:00
tsens-8960.c thermal/drivers/tsens: Drop unused define for msm8960 2021-04-22 14:10:08 +02:00
tsens-v0_1.c thermal/drivers/tsens: limit num_sensors to 9 for msm8939 2023-03-10 09:32:54 +01:00
tsens-v1.c thermal/drivers/tsens: Sort out msm8976 vs msm8956 data 2023-03-10 09:32:54 +01:00
tsens-v2.c drivers: thermal: tsens: Add watchdog support 2020-03-20 12:17:48 +01:00
tsens.c thermal/drivers/tsens: Fix null pointer dereference 2024-06-12 11:03:12 +02:00
tsens.h thermal/drivers/tsens: Sort out msm8976 vs msm8956 data 2023-03-10 09:32:54 +01:00