lkml.org 
[lkml]   [2023]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: (subset) [PATCH] drm/imagination: Fixed infinite loop in pvr_vm_mips_map()
Date
On Fri, 08 Dec 2023 16:08:25 +0000, Donald Robson wrote:
> Unwinding loop in error path for this function uses unsigned limit
> variable, causing the promotion of the signed counter variable.
>
> --> 204 for (; pfn >= start_pfn; pfn--)
> ^^^^^^^^^^^^^^^^
> If start_pfn can be zero then this is an endless loop. I've seen this
> code in other places as well. This loop is slightly off as well. It
> should decrement pfn on the first iteration.
>
> [...]

Applied to drm/drm-misc (drm-misc-next-fixes).

Thanks!
Maxime


\
 
 \ /
  Last update: 2023-12-15 14:13    [W:0.169 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site