drm/tegra: dc: Free syncpoint on errors
authorThierry Reding <treding@nvidia.com>
Fri, 4 May 2018 13:00:54 +0000 (15:00 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 4 May 2018 15:07:06 +0000 (17:07 +0200)
commitfd5ec0dc34dafa6c5bb46770ca283ae90a4db3c7
treeb5ebe25da4fc4357f745323633a613387b770042
parentc9ac52175b38e7f22fe37b9f943973d9095e53b7
drm/tegra: dc: Free syncpoint on errors

If an error happens during display controller initialization, the host1x
syncpoint previously requested would be leaked. Properly clean up the
syncpoint along with the other resources.

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