linux/drivers/thermal/qcom
Konrad Dybcio 0a47ba94ec 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>
2024-06-16 13:47: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:47: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 thermal: Explicitly include correct DT includes 2023-07-31 20:03:42 +02:00
qcom-spmi-temp-alarm.c thermal: Explicitly include correct DT includes 2023-07-31 20:03:42 +02:00
tsens-8960.c thermal/drivers/tsens: Allow configuring min and max trips 2022-12-14 15:25:40 +01:00
tsens-v0_1.c thermal/drivers/tsens: Make tsens_xxxx_nvmem static 2023-08-16 09:54:39 +02:00
tsens-v1.c thermal/drivers/tsens: Make tsens_xxxx_nvmem static 2023-08-16 09:54:39 +02:00
tsens-v2.c thermal/drivers/tsens: Add IPQ8074 support 2022-12-14 15:25:40 +01:00
tsens.c thermal/drivers/tsens: Fix null pointer dereference 2024-06-12 11:11:43 +02:00
tsens.h thermal/drivers/qcom/tsens-v0_1: Add MSM8909 data 2023-06-26 12:03:13 +02:00