提交 b95800ee 编写于 作者: T Thierry Reding

drm/tegra: dc: Register debugfs in ->late_register()

The ->late_register() and ->early_unregister() callbacks are called at
the right time to make sure userspace only accesses interfaces when it
should. Move debugfs registration and unregistration to these callback
functions to avoid potential races with userspace.
Signed-off-by: NThierry Reding <treding@nvidia.com>
上级 c49c81e2
此差异已折叠。
...@@ -56,8 +56,6 @@ struct tegra_dc { ...@@ -56,8 +56,6 @@ struct tegra_dc {
struct list_head list; struct list_head list;
struct drm_info_list *debugfs_files; struct drm_info_list *debugfs_files;
struct drm_minor *minor;
struct dentry *debugfs;
/* page-flip handling */ /* page-flip handling */
struct drm_pending_vblank_event *event; struct drm_pending_vblank_event *event;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册