mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 05:55:02 +08:00
7381e27b1e
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> |
||
---|---|---|
.. | ||
bcm-voter.c | ||
bcm-voter.h | ||
icc-rpmh.c | ||
icc-rpmh.h | ||
Kconfig | ||
Makefile | ||
msm8916.c | ||
msm8974.c | ||
osm-l3.c | ||
qcs404.c | ||
sc7180.c | ||
sc7180.h | ||
sdm845.c | ||
sdm845.h | ||
sm8150.c | ||
sm8150.h | ||
sm8250.c | ||
sm8250.h | ||
smd-rpm.c | ||
smd-rpm.h |