Searched hist:"7381 e27b1e563aa8a1c6bcf74a8cadb6901c283a" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/interconnect/qcom/ |
H A D | msm8974.c | diff 7381e27b1e563aa8a1c6bcf74a8cadb6901c283a Fri Nov 06 15:48:47 CET 2020 Georgi Djakov <georgi.djakov@linaro.org> 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 <luca@z3ntu.xyz> Reviewed-by: Brian Masney <masneyb@onstation.org> Link: https://lore.kernel.org/r/20201106144847.7726-1-georgi.djakov@linaro.org Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
|