Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpufreq: scmi: Avoid overflow of target_freq in fast switch
[ Upstream commit 074cffb ] Conversion of target_freq to HZ in scmi_cpufreq_fast_switch() can lead to overflow if the multiplied result is greater than UINT_MAX, since type of target_freq is unsigned int. Avoid this overflow by assigning target_freq to unsigned long variable for converting it to HZ. Signed-off-by: Jagadeesh Kona <[email protected]> Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information