drm/gma500: fix a missing break in psb_intel_crtc_mode_set
Subsystems (3)
PATCH 1/1 drm/gma500: fix a missing break in psb_intel_crtc_mode_set
Instead of exiting the loop as expected when an entry is found, the list_for_each_entry() continues until the traversal is complete. when found the entry, add a break after the switch statement.
Signed-off-by Xiaomeng Tong <[email protected]>
--- drivers/gpu/drm/gma500/psb_intel_display.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/gma500/psb_intel_display.c +2 -0
@@ -135,6 +135,8 @@ static int psb_intel_crtc_mode_set(struct drm_crtc *crtc, is_tv = true;break ; } + +break ; }drm_connector_list_iter_end (&conn_iter);
Signature · 1 line
2.17.1
Patrik Jakobsson
maintainerQuoted 6 lines · 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. when found the entry, add a break after the switch statement.Signed-off-by Xiaomeng Tong <[email protected]>
Thanks for the patch
Applied to drm-misc-next
Quoted 20 lines
--- drivers/gpu/drm/gma500/psb_intel_display.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/gma500/psb_intel_display.c +2
-1@@ -135,6 +135,8 @@ static int psb_intel_crtc_mode_set(struct drm_crtc *crtc, is_tv = true;break ; } + +break ; }drm_connector_list_iter_end (&conn_iter); --2.17.1