Re: [PATCH] clk: qcom: clk-rpmh: prevent integer overflow in recalc_rate
From: Bjorn Andersson
Date: Thu Dec 26 2024 - 17:39:28 EST
On Tue, 03 Dec 2024 11:42:31 +0300, Anastasia Belova wrote:
> aggr_state and unit fields are u32. The result of their
> multiplication may not fit in this type.
>
> Add explicit casting to prevent overflow.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> [...]
Applied, thanks!
[1/1] clk: qcom: clk-rpmh: prevent integer overflow in recalc_rate
commit: 89aa5925d201b90a48416784831916ca203658f9
Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>