diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2016-09-01 08:48:32 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-09-19 05:21:42 -0400 |
commit | 75ae95a75d640129fc4aff412c6ecc057142a149 (patch) | |
tree | d817f26904e91149331b747cad08777e48d90e54 /include/drm | |
parent | 9f8cf165c62913244479832f04c44cd77ffc9293 (diff) |
drm: remove redundant drm_file->uid
Each DRM file-context caches the EUID of the process that opened the file.
It is used exclusively for debugging purposes in /proc/dri/ and friends.
Note, however, that we can already fetch the EUID from
priv->pid->task->creds. The pointer-chasing will not hurt us, since it is
only about debugging, anyway.
Since we already are in an rcu-read-side, we can use __task_cred() rather
than task_cred_xxx().
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20160901124837.680-2-dh.herrmann@gmail.com
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drmP.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 94eb138753a9..14f191f0172c 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -379,7 +379,6 @@ struct drm_file { | |||
379 | unsigned is_master:1; | 379 | unsigned is_master:1; |
380 | 380 | ||
381 | struct pid *pid; | 381 | struct pid *pid; |
382 | kuid_t uid; | ||
383 | drm_magic_t magic; | 382 | drm_magic_t magic; |
384 | struct list_head lhead; | 383 | struct list_head lhead; |
385 | struct drm_minor *minor; | 384 | struct drm_minor *minor; |