aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorJagadeesh Kona <[email protected]>2024-05-20 12:07:32 +0530
committerViresh Kumar <[email protected]>2024-05-28 09:31:09 +0530
commit074cffb5020ddcaa5fafcc55655e5da6ebe8c831 (patch)
treed88cc7f6ed617152333f97889fafa63e498ab2f7 /tools/testing/selftests/bpf/prog_tests/autoload.c
parentfa8036e5fed21d871aef23092990bfbaddc521d5 (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 <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions