diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-07-15 01:20:29 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-07-15 01:20:29 +0000 |
commit | ee421b94c9ec0ed726bc94ed8028f2c3ddf14b98 (patch) | |
tree | 012c366f944cf9fbbdd522da45b832688b091108 /sys/dev | |
parent | 63f577c24da4facbec1602275f1cbf7411dc2c28 (diff) |
drm/bridge: Fix the stop condition of drm_bridge_chain_pre_enable()
From Douglas Anderson
0cd39c96574d19e234cee971868c82c3769c2ee6 in linux 5.10.y/5.10.50
bab5cca7e609952b069a550e39fe4893149fb658 in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/drm_bridge.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drm_bridge.c b/sys/dev/pci/drm/drm_bridge.c index d5bad072bfd..3bee172bce6 100644 --- a/sys/dev/pci/drm/drm_bridge.c +++ b/sys/dev/pci/drm/drm_bridge.c @@ -522,6 +522,9 @@ void drm_bridge_chain_pre_enable(struct drm_bridge *bridge) list_for_each_entry_reverse(iter, &encoder->bridge_chain, chain_node) { if (iter->funcs->pre_enable) iter->funcs->pre_enable(iter); + + if (iter == bridge) + break; } } EXPORT_SYMBOL(drm_bridge_chain_pre_enable); |