Commit 3215e000 authored by Biju Das's avatar Biju Das Committed by Greg Kroah-Hartman
Browse files

drm/tegra: rgb: Fix the unbound reference count



[ Upstream commit 3c364233 ]

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: d8f4a9ed ("drm: Add NVIDIA Tegra20 support")
Signed-off-by: default avatarBiju Das <biju.das.jz@bp.renesas.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20250205112137.36055-1-biju.das.jz@bp.renesas.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 01f73e10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment