summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorAleksandr Mishin <amishin@t-argos.ru>2024-04-11 14:40:21 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-30 10:49:13 +0300
commit06d17744b77bc6cb29a6c785f4fad8c4163ee653 (patch)
tree5d3f97d37530282009c240a67c731a896e43d379 /Documentation
parent674de30d35446ec90c3fdce3cd78a88a80993c78 (diff)
downloadlinux-06d17744b77bc6cb29a6c785f4fad8c4163ee653.tar.xz
thermal/drivers/tsens: Fix null pointer dereference
[ Upstream commit d998ddc86a27c92140b9f7984ff41e3d1d07a48f ] compute_intercept_slope() is called from calibrate_8960() (in tsens-8960.c) as compute_intercept_slope(priv, p1, NULL, ONE_PT_CALIB) which lead to null pointer dereference (if DEBUG or DYNAMIC_DEBUG set). Fix this bug by adding null pointer check. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: dfc1193d4dbd ("thermal/drivers/tsens: Replace custom 8960 apis with generic apis") Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20240411114021.12203-1-amishin@t-argos.ru Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions