mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 22:24:09 +08:00
drm/tegra: output: Do not put OF node twice
The original patch for commit3d2e7aec70
("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:3d2e7aec70
("drm/tegra: output: Don't leak OF node on error") Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
41f71629b4
commit
123f01a0c9
@ -129,7 +129,6 @@ int tegra_output_probe(struct tegra_output *output)
|
|||||||
|
|
||||||
if (!output->ddc) {
|
if (!output->ddc) {
|
||||||
err = -EPROBE_DEFER;
|
err = -EPROBE_DEFER;
|
||||||
of_node_put(ddc);
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user