[PATCH] drm/mediatek: Keep the mutex node reference across deferred binds

Chun-Kuang Hu chunkuang.hu at kernel.org
Mon Nov 23 07:59:15 PST 2026


Yige Jiang <yigejiang86 at gmail.com> 於 2026年11月6日週五 上午9:20寫道:
>
> mtk_drm_probe() acquires private->mutex_node and releases that reference
> on probe failure or in mtk_drm_remove(). The component bind callback does
> not acquire another reference, so it must not put the node when the mutex
> platform device is not available.
>
> If this bind failure propagates through component_master_add_with_match(),
> the probe error path puts the same reference again. A bind attempted after
> probe has returned can also leave the stored node without its reference
> for a later bind or remove.
>
> Remove the bind-time put and leave the node reference with its probe/remove
> owner.

Applied to mediatek-drm-fixes [1], thanks.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-fixes

Regards,
Chun-Kuang.

>
> Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.")
> Cc: stable at vger.kernel.org
> Signed-off-by: Yige Jiang <yigejiang86 at gmail.com>
> ---



More information about the linux-arm-kernel mailing list