diff options
author | Xiaomeng Tong <xiam0nd.tong@gmail.com> | 2022-04-01 14:50:18 +0300 |
---|---|---|
committer | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2022-04-06 10:38:11 +0300 |
commit | 61fe0ab26e36998cebec48805d6873e31f0d79d7 (patch) | |
tree | 8298c496d93f6a8636def8d9686750a3e889a340 /drivers/gpu/drm/gma500 | |
parent | 7a828f1f1fe30024cd153452b808a07ddf07c153 (diff) | |
download | linux-61fe0ab26e36998cebec48805d6873e31f0d79d7.tar.xz |
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 <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
Diffstat (limited to 'drivers/gpu/drm/gma500')
-rw-r--r-- | drivers/gpu/drm/gma500/psb_intel_display.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/gma500/psb_intel_display.c b/drivers/gpu/drm/gma500/psb_intel_display.c index dc467996cce4..9a5ea06a1a8e 100644 --- a/drivers/gpu/drm/gma500/psb_intel_display.c +++ b/drivers/gpu/drm/gma500/psb_intel_display.c @@ -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); |