summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_auth.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-08-29 12:12:30 +0200
committerDave Airlie <airlied@redhat.com>2014-09-10 09:39:50 +0200
commit71d39483de474d9513e23d9e21af7483684f4745 (patch)
tree8fef51a2ace8d9f7971f53b2e50a996c7a0f37b0 /drivers/gpu/drm/drm_auth.c
parentdrm: move "struct drm_vma_entry" to drm_vm.c (diff)
downloadlinux-71d39483de474d9513e23d9e21af7483684f4745.tar.xz
linux-71d39483de474d9513e23d9e21af7483684f4745.zip
drm: move "struct drm_magic_entry" to drm_auth.c
In drm_release(), we currently call drm_remove_magic() if the drm_file has a drm-magic attached. Therefore, once drm_master_release() is called, the magic-list _must_ be empty. By dropping the no-op cleanup, we can move "struct drm_magic_entry" to drm_auth.c and avoid exposing it to all of DRM. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_auth.c')
-rw-r--r--drivers/gpu/drm/drm_auth.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c
index 3cedae12b3c1..708a2044c631 100644
--- a/drivers/gpu/drm/drm_auth.c
+++ b/drivers/gpu/drm/drm_auth.c
@@ -35,6 +35,12 @@
#include <drm/drmP.h>
+struct drm_magic_entry {
+ struct list_head head;
+ struct drm_hash_item hash_item;
+ struct drm_file *priv;
+};
+
/**
* Find the file with the given magic number.
*