diff options
author | Sudeep Holla <[email protected]> | 2023-11-30 20:43:42 +0000 |
---|---|---|
committer | Sudeep Holla <[email protected]> | 2023-12-04 12:32:53 +0000 |
commit | 8e3c98d9187e09274fc000a7d1a77b070a42d259 (patch) | |
tree | b566e3693982c0edd371a6eaf3e6fb1fede08323 /scripts/generate_rust_analyzer.py | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) |
firmware: arm_scmi: Fix frequency truncation by promoting multiplier type
Fix the possible frequency truncation for all values equal to or greater
4GHz on 64bit machines by updating the multiplier 'mult_factor' to
'unsigned long' type. It is also possible that the multiplier itself can
be greater than or equal to 2^32. So we need to also fix the equation
computing the value of the multiplier.
Fixes: a9e3fbfaa0ff ("firmware: arm_scmi: add initial support for performance protocol")
Reported-by: Sibi Sankar <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Cc: Cristian Marussi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions