]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:17:17 +0000 (10:17 +0100)
commitb3e92227862263570172887af33d034f2c777793
treec9d3fa7f41a2fb3dc7e13a4fbd1babd27264cbaf
parent8f059592969d0b21b873be5db26df262d1dc1fa1
drm/mediatek: mtk_hdmi: Fix probe device leaks

commit 9545bae5c8acd5a47af7add606718d94578bd838 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/mediatek/mtk_hdmi.c