]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/sti: remove bridge when sti_hda component_add fails
authorOsama Abdelkader <osama.abdelkader@gmail.com>
Thu, 23 Apr 2026 20:06:19 +0000 (22:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 May 2026 15:16:32 +0000 (17:16 +0200)
commitc982bfd7d1b1a3216aaac4c545aa4aa9cb1a1ec9
tree0310fcb4c2a068d7cfd002c08463c9dedc42ab86
parent164fd3372ac36b39e5dd6ba856f3ba6e2a4212b0
drm/sti: remove bridge when sti_hda component_add fails

commit 84ae1840260fece9b6b70d3872b79384bbe5a90b upstream.

Use devm_drm_bridge_add() so the bridge is released if probe fails after
registration, and drop the manual drm_bridge_remove() in remove().

Check the return value of devm_drm_bridge_add().

Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Fixes: d28726efc637 ("drm/sti: hda: add bridge before attaching")
Cc: stable@vger.kernel.org
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Acked-by: Raphaƫl Gallais-Pou <rgallaispou@gmail.com>
Link: https://patch.msgid.link/20260423200622.325076-1-osama.abdelkader@gmail.com
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/sti/sti_hda.c