]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/gpu/drm/drm_fops.c
drm/cred: wrap task credential accesses in the drm driver.
[linux-2.6-omap-h63xx.git] / drivers / gpu / drm / drm_fops.c
index 851a53f1accefa0ee1d84772a6ec5a182d609969..dcf8b4dc954919f874a878bddd35a0bcf8906eec 100644 (file)
@@ -246,7 +246,7 @@ static int drm_open_helper(struct inode *inode, struct file *filp,
        memset(priv, 0, sizeof(*priv));
        filp->private_data = priv;
        priv->filp = filp;
-       priv->uid = current->euid;
+       priv->uid = current_euid();
        priv->pid = task_pid_nr(current);
        priv->minor = idr_find(&drm_minors_idr, minor_id);
        priv->ioctl_count = 0;