From: Thierry Reding Date: Fri, 4 May 2018 15:00:54 +0200 Subject: drm/tegra: dc: Free syncpoint on errors Git-commit: fd5ec0dc34dafa6c5bb46770ca283ae90a4db3c7 Patch-mainline: v4.18-rc1 References: FATE#326289 FATE#326079 FATE#326049 FATE#322398 FATE#326166 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 Signed-off-by: Thierry Reding Acked-by: Petr Tesarik --- drivers/gpu/drm/tegra/dc.c | 2 ++ 1 file changed, 2 insertions(+) --- 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; }