[PATCH v2 3/9] thermal/drivers/mediatek/lvts: Guard against zero temp_factor in lvts_raw_to_temp

Fei Shao fshao at chromium.org
Wed Jul 30 20:46:20 PDT 2025


On Wed, Jul 30, 2025 at 11:32 PM Laura Nao <laura.nao at collabora.com> wrote:
>
> Add a guard against zero temp_factor in lvts_raw_to_temp() to prevent
> division by zero and ensure safe conversion.
>
> Fixes: 6725a29321e4 ("thermal/drivers/mediatek/lvts_thermal: Make coeff configurable")
> Reviewed-by: Chen-Yu Tsai <wenst at chromium.org>
> Signed-off-by: Laura Nao <laura.nao at collabora.com>

Reviewed-by: Fei Shao <fshao at chromium.org>



More information about the linux-arm-kernel mailing list