lkml.org 
[lkml]   [2022]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] cpufreq: CPPC: Add u64 casts to avoid overflowing
On 20-12-22, 11:12, Pierre Gondois wrote:
> The fields of the _CPC object are unsigned 32-bits values.
> To avoid overflows while using _CPC's values, add 'u64' casts.
>
> Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
> ---
> drivers/cpufreq/cppc_cpufreq.c | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)

Applied. Thanks.

--
viresh

\
 
 \ /
  Last update: 2023-03-26 23:16    [W:0.049 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site