summaryrefslogtreecommitdiff
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
parentc9ac52175b38e7f22fe37b9f943973d9095e53b7 (diff)
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>
-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;
}