Files
linux/arch/arm64/kernel
Sergey Shtylyov d4955c0ad7 arm64: topology: fix possible overflow in amu_fie_setup()
cpufreq_get_hw_max_freq() returns max frequency in kHz as *unsigned int*,
while freq_inv_set_max_ratio() gets passed this frequency in Hz as 'u64'.
Multiplying max frequency by 1000 can potentially result in overflow --
multiplying by 1000ULL instead should avoid that...

Found by Linux Verification Center (linuxtesting.org) with the SVACE static
analysis tool.

Fixes: cd0ed03a89 ("arm64: use activity monitors for frequency invariance")
Signed-off-by: Sergey Shtylyov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
2022-09-22 12:57:06 +01:00
..
2022-07-01 12:07:43 +01:00
2022-06-27 12:22:31 +01:00
…
2021-10-01 13:31:00 +01:00
2021-08-04 16:54:36 +00:00
2022-08-23 10:53:34 +01:00
…
…
2021-03-24 20:19:30 +00:00
2022-04-04 10:32:50 +01:00
2022-07-20 16:08:10 +01:00
…
…