OSDN Git Service

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)
commit61fe0ab26e36998cebec48805d6873e31f0d79d7
tree8298c496d93f6a8636def8d9686750a3e889a340
parent7a828f1f1fe30024cd153452b808a07ddf07c153
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
drivers/gpu/drm/gma500/psb_intel_display.c