OSDN Git Service

drm/tegra: output: Do not put OF node twice
authorThierry Reding <treding@nvidia.com>
Fri, 13 Nov 2020 20:38:35 +0000 (21:38 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 13 Nov 2020 20:38:35 +0000 (21:38 +0100)
commit123f01a0c989905a1cef6c1397a022eb321474d8
tree2f214f9c8918a1e34b61fa72016316b602e6ae47
parent41f71629b4c432f8dd47d70ace813be5f79d4d75
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>
drivers/gpu/drm/tegra/output.c