]> Gentwo Git Trees - linux/.git/commit
drm/mediatek: mtk_hdmi: Fix probe device leaks
authorJohan Hovold <johan@kernel.org>
Tue, 23 Sep 2025 15:23:39 +0000 (17:23 +0200)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 17 Nov 2025 14:52:24 +0000 (14:52 +0000)
commit9545bae5c8acd5a47af7add606718d94578bd838
tree1372c56eef869e1a7ad51ea810a014687432d597
parent3a8660878839faadb4f1a6dd72c3179c1df56787
drm/mediatek: mtk_hdmi: Fix probe device leaks

Make sure to drop the references to the DDC adapter and CEC device
taken during probe on probe failure (e.g. probe deferral) and on driver
unbind.

Fixes: 8f83f26891e1 ("drm/mediatek: Add HDMI support")
Cc: stable@vger.kernel.org # 4.8
Cc: Jie Qiu <jie.qiu@mediatek.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20250923152340.18234-5-johan@kernel.org/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_hdmi.c