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

CK Hu (胡俊光) ck.hu at mediatek.com
Wed Nov 11 19:01:40 PST 2026


On Fri, 2026-11-06 at 17:20 +0800, Yige Jiang wrote:
> External email : Please do not click links or open attachments until you have verified the sender or the content.
> 
> 
> 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.

Reviewed-by: CK Hu <ck.hu at mediatek.com>

> 
> 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-mediatek mailing list