提交 fd5ec0dc 编写于 作者: T 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: NDmitry Osipenko <digetx@gmail.com>
Signed-off-by: NThierry Reding <treding@nvidia.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册