Commit fd5ec0dc authored by Thierry Reding's avatar Thierry Reding

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: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent c9ac5217
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment