mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
cpufreq: CPPC: Add u64 casts to avoid overflowing
[ Upstream commit f5f94b9c8b ]
The fields of the _CPC object are unsigned 32-bits values.
To avoid overflows while using _CPC's values, add 'u64' casts.
Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
528bd2aa1e
commit
7d596bbc66
1 changed files with 6 additions and 5 deletions
Loading…
Add table
Add a link
Reference in a new issue