[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ced95410-1b3c-8344-fe62-7f22f310c86d@amd.com>
Date: Wed, 4 Jul 2018 14:05:18 -0400
From: Harry Wentland <harry.wentland@....com>
To: "Gustavo A. R. Silva" <gustavo@...eddedor.com>,
Michel Dänzer <michel@...nzer.net>,
Alex Deucher <alexander.deucher@....com>,
Christian König <christian.koenig@....com>,
"David (ChunMing) Zhou" <David1.Zhou@....com>,
David Airlie <airlied@...ux.ie>
Cc: amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/amd/display/dc/dce: Fix multiple potential integer
overflows
On 2018-07-04 01:54 PM, Gustavo A. R. Silva wrote:
>
>
> On 07/04/2018 12:51 PM, Harry Wentland wrote:
> [..]
>>>>
>>>> @@ -145,8 +145,8 @@ static bool calculate_fb_and_fractional_fb_divider(
>>>> * of fractional feedback decimal point and the fractional FB Divider precision
>>>> * is 2 then the equation becomes (ullfeedbackDivider + 5*100) / (10*100))*/
>>>>
>>>> - feedback_divider += (uint64_t)
>>>> - (5 * calc_pll_cs->fract_fb_divider_precision_factor);
>>>> + feedback_divider += 5UL *
>>>> + calc_pll_cs->fract_fb_divider_precision_factor;
>>>
>>> This should be 5ULL, as the commit log says, otherwise it's still only
>>> 32 bits on 32-bit platforms.
>>>
>>
>> Agreed.
>>
>> Otherwise this looks good.
>>
>> With that fixed this patch is
>> Reviewed-by: Harry Wentland <harry.wentland@....com>
>>
>
> Hi Harry,
>
> I already sent v2: https://patchwork.kernel.org/patch/10506897/
>
Thanks. Merged.
Harry
> Thanks
> --
> Gustavo
>
Powered by blists - more mailing lists