]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/tegra: dsi: fix device leak on probe
authorJohan Hovold <johan@kernel.org>
Fri, 21 Nov 2025 16:42:01 +0000 (17:42 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 14 Jan 2026 14:23:17 +0000 (15:23 +0100)
commitbfef062695570842cf96358f2f46f4c6642c6689
tree422932be33c0afab18c39b5d06b3fd13624a9c62
parentcd98e73492102a2ff54923f08c37a2780979ac4c
drm/tegra: dsi: fix device leak on probe

Make sure to drop the reference taken when looking up the companion
(ganged) device and its driver data during probe().

Note that holding a reference to a device does not prevent its driver
data from going away so there is no point in keeping the reference.

Fixes: e94236cde4d5 ("drm/tegra: dsi: Add ganged mode support")
Fixes: 221e3638feb8 ("drm/tegra: Fix reference leak in tegra_dsi_ganged_probe")
Cc: stable@vger.kernel.org # 3.19: 221e3638feb8
Cc: Thierry Reding <treding@nvidia.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patch.msgid.link/20251121164201.13188-1-johan@kernel.org
drivers/gpu/drm/tegra/dsi.c