diff options
| author | Thierry Reding <[email protected]> | 2018-05-04 15:00:54 +0200 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2018-05-04 17:07:06 +0200 |
| commit | fd5ec0dc34dafa6c5bb46770ca283ae90a4db3c7 (patch) | |
| tree | b5ebe25da4fc4357f745323633a613387b770042 | |
| parent | c9ac52175b38e7f22fe37b9f943973d9095e53b7 (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 <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
| -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; } |