From: Thierry Reding Date: Fri, 4 May 2018 13:00:54 +0000 (+0200) Subject: drm/tegra: dc: Free syncpoint on errors X-Git-Tag: v4.19~774^2~7^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd5ec0dc34dafa6c5bb46770ca283ae90a4db3c7;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index f20648f..c843f11 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; }