Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b95800ee authored by Thierry Reding's avatar Thierry Reding
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
parent c49c81e2
Loading
Loading
Loading
Loading
+546 −574

File changed.

Preview size limit exceeded, changes collapsed.

+0 −2
Original line number Diff line number Diff line
@@ -56,8 +56,6 @@ struct tegra_dc {
	struct list_head list;

	struct drm_info_list *debugfs_files;
	struct drm_minor *minor;
	struct dentry *debugfs;

	/* page-flip handling */
	struct drm_pending_vblank_event *event;