diff options
| author | Luca Ceresoli <luca.ceresoli@bootlin.com> | 2026-03-24 09:58:13 +0100 |
|---|---|---|
| committer | Luca Ceresoli <luca.ceresoli@bootlin.com> | 2026-04-16 09:08:42 +0200 |
| commit | 82ce979b9be52fdc533c9e9aed965216e088200a (patch) | |
| tree | 54a52954aab3acb9b1a9cb929e3d07db0bc45e7f /include/linux/timerqueue.h | |
| parent | f776e9b8c290bab534b2699e6397456147c5a5a4 (diff) | |
drm/bridge: prevent encoder chain changes while iterating with list_for_each_entry_reverse()
These loops in drm_bridge.c iterate over the encoder chain using
list_for_each_entry_reverse(), which does not prevent changes to the bridge
chain while iterating over it.
Take the encoder chain mutex while iterating to avoid chain changes while
iterating.
All the "simple" loops are converted. drm_atomic_bridge_chain_pre_enable()
and drm_atomic_bridge_chain_post_disable() are handled by a separate
commit.
Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com>
Link: https://patch.msgid.link/20260324-drm-bridge-alloc-encoder-chain-mutex-v5-6-8bf786c5c7e6@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
