]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/bridge: samsung-dsim: use drm_bridge_clear_and_put() to put the next bridge
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 10 Mar 2026 12:13:24 +0000 (13:13 +0100)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Fri, 20 Mar 2026 10:02:12 +0000 (11:02 +0100)
commitfbef867cf6614178bc6afd15ee15f85cddf19eab
treec7f6d12e1ee633e4686518851748f861a6d8bb10
parent8f3c83720555ffa96799896f2a0bb985a03a89f4
drm/bridge: samsung-dsim: use drm_bridge_clear_and_put() to put the next bridge

drm_bridge_clear_and_put() is simpler to write and it prevents any
potential future use-after-free.

Reviewed-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patch.msgid.link/20260310-drm-bridge-atomic-vs-remove-clear_and_put-v2-2-51fe222f3cf0@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/bridge/samsung-dsim.c