Re: [PATCH] drm/mediatek: Keep the mutex node reference across deferred binds
From: CK Hu (胡俊光)
Date: Wed Nov 11 2026 - 22:04:25 EST
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@xxxxxxxxxxxx>
>
> Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Yige Jiang <yigejiang86@xxxxxxxxx>
> ---