diff options
| author | Jagadeesh Kona <quic_jkona@quicinc.com> | 2024-05-20 12:07:32 +0530 |
|---|---|---|
| committer | Viresh Kumar <viresh.kumar@linaro.org> | 2024-05-28 09:31:09 +0530 |
| commit | 074cffb5020ddcaa5fafcc55655e5da6ebe8c831 (patch) | |
| tree | d88cc7f6ed617152333f97889fafa63e498ab2f7 /drivers/fpga/fpga-bridge.c | |
| parent | fa8036e5fed21d871aef23092990bfbaddc521d5 (diff) | |
cpufreq: scmi: Avoid overflow of target_freq in fast switch
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 <quic_jkona@quicinc.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
