Skip to content

Commit 123f01a

Browse files
committed
drm/tegra: output: Do not put OF node twice
The original patch for commit 3d2e7ae ("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: 3d2e7ae ("drm/tegra: output: Don't leak OF node on error") Signed-off-by: Thierry Reding <treding@nvidia.com>
1 parent 41f7162 commit 123f01a

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/gpu/drm/tegra/output.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ int tegra_output_probe(struct tegra_output *output)
129129

130130
if (!output->ddc) {
131131
err = -EPROBE_DEFER;
132-
of_node_put(ddc);
133132
return err;
134133
}
135134
}

0 commit comments

Comments
 (0)