]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: dc: Properly cleanup overlay planes
authorThierry Reding <treding@nvidia.com>
Mon, 8 Jan 2018 15:16:06 +0000 (16:16 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 8 Jan 2018 15:24:13 +0000 (16:24 +0100)
commitae80f8d15077e82c1a0780aab5ebae930d23c6c8
treef60600d739b1e26a0a2b4a96e33f06b1473fc08e
parent769f7af862726703ff49bd426a63527fb2b1f6cb
drm/tegra: dc: Properly cleanup overlay planes

The first overlay plane can leak if initialization of the second overlay
plane fails. Fix this by properly destroying the first overlay plane on
error.

Suggested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c