diff options
author | Georgi Djakov <[email protected]> | 2020-11-06 16:48:47 +0200 |
---|---|---|
committer | Georgi Djakov <[email protected]> | 2020-11-18 00:18:05 +0200 |
commit | 7381e27b1e563aa8a1c6bcf74a8cadb6901c283a (patch) | |
tree | 6abb59915407fd210af88aa8a4e6bcd57561ada3 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 3cea11cd5e3b00d91caf0b4730194039b45c5891 (diff) |
interconnect: qcom: msm8974: Prevent integer overflow in rate
When sync_state support got introduced recently, by default we try to
set the NoCs to run initially at maximum rate. But as these values are
aggregated, we may end with a really big clock rate value, which is
then converted from "u64" to "long" during the clock rate rounding.
But on 32bit platforms this may result an overflow. Fix it by making
sure that the rate is within range.
Reported-by: Luca Weiss <[email protected]>
Reviewed-by: Brian Masney <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Georgi Djakov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions