[PATCH] drm/mediatek: Fix refcounting in mtk_drm_get_all_drm_priv
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Fri Oct 3 01:20:02 PDT 2025
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 at vger.kernel.org
> Fixes: 9ba2556cef1df ("drm/mediatek: clean up driver data initialisation")
> Signed-off-by: Sjoerd Simons <sjoerd at collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
More information about the linux-arm-kernel
mailing list