drm/gma500: fix a missing break in psb_intel_crtc_mode_set
authorXiaomeng Tong <xiam0nd.tong@gmail.com>
Fri, 1 Apr 2022 11:50:18 +0000 (19:50 +0800)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Wed, 6 Apr 2022 07:38:11 +0000 (09:38 +0200)
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 <xiam0nd.tong@gmail.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220401115018.9335-1-xiam0nd.tong@gmail.com
drivers/gpu/drm/gma500/psb_intel_display.c

index dc467996cce4911d1c5b48793f6b1e9e48252135..9a5ea06a1a8e531511e2f6c4fe386af5d4b0c017 100644 (file)
@@ -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);