]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/tegra: rgb: Fix the unbound reference count
authorBiju Das <biju.das.jz@bp.renesas.com>
Wed, 5 Feb 2025 11:21:35 +0000 (11:21 +0000)
committerThierry Reding <treding@nvidia.com>
Wed, 7 May 2025 16:06:14 +0000 (18:06 +0200)
commit3c3642335065c3bde0742b0edc505b6ea8fdc2b3
treef3336c2d664043ce902f1bc9a1fc429125d1727b
parent33ca5aafc3592a27375cf7a249cf162c90f5e653
drm/tegra: rgb: Fix the unbound reference count

The of_get_child_by_name() increments the refcount in tegra_dc_rgb_probe,
but the driver does not decrement the refcount during unbind. Fix the
unbound reference count using devm_add_action_or_reset() helper.

Fixes: d8f4a9eda006 ("drm: Add NVIDIA Tegra20 support")
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20250205112137.36055-1-biju.das.jz@bp.renesas.com
drivers/gpu/drm/tegra/rgb.c