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>
This commit is contained in:
Thierry Reding
2018-05-04 15:00:54 +02:00
parent c9ac52175b
commit fd5ec0dc34

View File

@@ -1925,6 +1925,8 @@ static int tegra_dc_init(struct host1x_client *client)
iommu_group_put(dc->group);
}
host1x_syncpt_free(dc->syncpt);
return err;
}