Commit 43bb0a2
drm/tegra: dsi: fix device leak on probe
[ Upstream commit bfef062 ]
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: e94236c ("drm/tegra: dsi: Add ganged mode support")
Fixes: 221e363 ("drm/tegra: Fix reference leak in tegra_dsi_ganged_probe")
Cc: stable@vger.kernel.org # 3.19: 221e363
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
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent ec3be7d commit 43bb0a2
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1539 | 1539 | | |
1540 | 1540 | | |
1541 | 1541 | | |
1542 | | - | |
1543 | | - | |
1544 | | - | |
| 1542 | + | |
| 1543 | + | |
1545 | 1544 | | |
1546 | | - | |
1547 | 1545 | | |
1548 | 1546 | | |
1549 | 1547 | | |
| |||
0 commit comments