Re: [PATCH] drm/gma500: fix a missing break in psb_driver_load

2022-04-06 Thread Xiaomeng Tong
On Wed, 6 Apr 2022 09:27:19 +0200, Patrik Jakobsson wrote: > On Fri, Apr 1, 2022 at 1:58 PM Xiaomeng Tong wrote: > > > > Instead of exiting the loop as expected when an entry is found, the > > list_for_each_entry() continues until the traversal is complete. To > > avoid potential executing 'ret =

Re: [PATCH] drm/gma500: fix a missing break in psb_driver_load

2022-04-06 Thread Patrik Jakobsson
On Fri, Apr 1, 2022 at 1:58 PM Xiaomeng Tong wrote: > > Instead of exiting the loop as expected when an entry is found, the > list_for_each_entry() continues until the traversal is complete. To > avoid potential executing 'ret = gma_backlight_init(dev);' repeatly, > break the loop when the entry i

[PATCH] drm/gma500: fix a missing break in psb_driver_load

2022-04-01 Thread Xiaomeng Tong
Instead of exiting the loop as expected when an entry is found, the list_for_each_entry() continues until the traversal is complete. To avoid potential executing 'ret = gma_backlight_init(dev);' repeatly, break the loop when the entry is found. Signed-off-by: Xiaomeng Tong --- drivers/gpu/drm/gm