diff options
author | Anastasia Belova <abelova@astralinux.ru> | 2024-12-03 11:42:31 +0300 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2024-12-26 15:40:20 -0600 |
commit | 89aa5925d201b90a48416784831916ca203658f9 (patch) | |
tree | 231b4772d4bbb18a46efc1d0eb91a370f8cfd1f0 /tools/perf/scripts/python/stackcollapse.py | |
parent | 39d6dcf67fe955eadd787052a8963837be801794 (diff) |
clk: qcom: clk-rpmh: prevent integer overflow in recalc_rate
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.
Fixes: 04053f4d23a4 ("clk: qcom: clk-rpmh: Add IPA clock support")
Cc: stable@vger.kernel.org # 5.4+
Signed-off-by: Anastasia Belova <abelova@astralinux.ru>
Link: https://lore.kernel.org/r/20241203084231.6001-1-abelova@astralinux.ru
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions