summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tegra
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2020-11-13 23:38:35 +0300
committerThierry Reding <treding@nvidia.com>2020-11-13 23:38:35 +0300
commit123f01a0c989905a1cef6c1397a022eb321474d8 (patch)
tree2f214f9c8918a1e34b61fa72016316b602e6ae47 /drivers/gpu/drm/tegra
parent41f71629b4c432f8dd47d70ace813be5f79d4d75 (diff)
downloadlinux-123f01a0c989905a1cef6c1397a022eb321474d8.tar.xz
drm/tegra: output: Do not put OF node twice
The original patch for commit 3d2e7aec7013 ("drm/tegra: output: Don't leak OF node on error") contained this hunk, but it was accidentally dropped during conflict resolution. This causes use-after-free errors on devices that use an I2C controller for HDMI DDC/CI on Tegra210 and later. Fixes: 3d2e7aec7013 ("drm/tegra: output: Don't leak OF node on error") Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra')
-rw-r--r--drivers/gpu/drm/tegra/output.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/output.c b/drivers/gpu/drm/tegra/output.c
index 5a4fd0dbf4cf..47d26b5d9945 100644
--- a/drivers/gpu/drm/tegra/output.c
+++ b/drivers/gpu/drm/tegra/output.c
@@ -129,7 +129,6 @@ int tegra_output_probe(struct tegra_output *output)
if (!output->ddc) {
err = -EPROBE_DEFER;
- of_node_put(ddc);
return err;
}
}