Re: [PATCH v3] drm/gma500: fix a potential repeat execution in psb_driver_load

2022-04-20 Thread Patrik Jakobsson
On Wed, Apr 13, 2022 at 7:11 AM 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, > goto outside the loop when fou

[PATCH v3] drm/gma500: fix a potential repeat execution in psb_driver_load

2022-04-12 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, goto outside the loop when found entry by replacing switch/case with if statement. Signed-off