Re: [PATCH] drm/mediatek: Fix refcounting in mtk_drm_get_all_drm_priv
From: AngeloGioacchino Del Regno
Date: Fri Oct 03 2025 - 04:20:17 EST
Il 03/10/25 10:08, Sjoerd Simons ha scritto:
dev_get_drvdata simply returns the driver data part of drm_dev, which
has its lifetime bound to the drm_dev. So only drop the reference in the
error paths, on success they will get dropped later.
Cc: stable@xxxxxxxxxxxxxxx
Fixes: 9ba2556cef1df ("drm/mediatek: clean up driver data initialisation")
Signed-off-by: Sjoerd Simons <sjoerd@xxxxxxxxxxxxx>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>