aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/dc.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2018-05-04 15:00:54 +0200
committerThierry Reding <treding@nvidia.com>2018-05-04 17:07:06 +0200
commitfd5ec0dc34dafa6c5bb46770ca283ae90a4db3c7 (patch)
treeb5ebe25da4fc4357f745323633a613387b770042 /drivers/gpu/drm/tegra/dc.c
parentdrm/tegra: gr3d: Add IOMMU support (diff)
downloadlinux-dev-fd5ec0dc34dafa6c5bb46770ca283ae90a4db3c7.tar.xz
linux-dev-fd5ec0dc34dafa6c5bb46770ca283ae90a4db3c7.zip
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>
Diffstat (limited to 'drivers/gpu/drm/tegra/dc.c')
-rw-r--r--drivers/gpu/drm/tegra/dc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c
index f20648f58e49..c843f11043db 100644
--- a/drivers/gpu/drm/tegra/dc.c
+++ b/drivers/gpu/drm/tegra/dc.c
@@ -1925,6 +1925,8 @@ cleanup:
iommu_group_put(dc->group);
}
+ host1x_syncpt_free(dc->syncpt);
+
return err;
}