]> 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)
commit4b0758f49aea3820c031be88ed807c5c7909bf9d
treef60600d739b1e26a0a2b4a96e33f06b1473fc08e
parent55bfb2fcb2654559b576d3fc385cd0743489983f
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