diff options
author | Thierry Reding <treding@nvidia.com> | 2018-05-04 15:00:54 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2018-05-04 17:07:06 +0200 |
commit | fd5ec0dc34dafa6c5bb46770ca283ae90a4db3c7 (patch) | |
tree | b5ebe25da4fc4357f745323633a613387b770042 /drivers/gpu/drm/tegra/dc.c | |
parent | c9ac52175b38e7f22fe37b9f943973d9095e53b7 (diff) | |
download | linux-fd5ec0dc34dafa6c5bb46770ca283ae90a4db3c7.tar.gz |
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.c | 2 |
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; } |