diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/drm_fops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c index 851a53f1acce..dcf8b4dc9549 100644 --- a/drivers/gpu/drm/drm_fops.c +++ b/drivers/gpu/drm/drm_fops.c | |||
@@ -246,7 +246,7 @@ static int drm_open_helper(struct inode *inode, struct file *filp, | |||
246 | memset(priv, 0, sizeof(*priv)); | 246 | memset(priv, 0, sizeof(*priv)); |
247 | filp->private_data = priv; | 247 | filp->private_data = priv; |
248 | priv->filp = filp; | 248 | priv->filp = filp; |
249 | priv->uid = current->euid; | 249 | priv->uid = current_euid(); |
250 | priv->pid = task_pid_nr(current); | 250 | priv->pid = task_pid_nr(current); |
251 | priv->minor = idr_find(&drm_minors_idr, minor_id); | 251 | priv->minor = idr_find(&drm_minors_idr, minor_id); |
252 | priv->ioctl_count = 0; | 252 | priv->ioctl_count = 0; |