drm: fix allowing master ioctls on non-master fds.
authorDave Airlie <airlied@redhat.com>
Fri, 19 Dec 2008 01:00:46 +0000 (12:00 +1100)
committerDave Airlie <airlied@linux.ie>
Mon, 29 Dec 2008 07:47:24 +0000 (17:47 +1000)
The multi-master patches changed master to a pointer, and this fell out,
change to use is_master.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_drv.c

index 0b9f3164a3b254b1cd5ffafb8f018b9f78e0e734..c6e338282588428fdab8e7a06d47900f01ea56c0 100644 (file)
@@ -493,7 +493,7 @@ int drm_ioctl(struct inode *inode, struct file *filp,
                retcode = -EINVAL;
        } else if (((ioctl->flags & DRM_ROOT_ONLY) && !capable(CAP_SYS_ADMIN)) ||
                   ((ioctl->flags & DRM_AUTH) && !file_priv->authenticated) ||
-                  ((ioctl->flags & DRM_MASTER) && !file_priv->master)) {
+                  ((ioctl->flags & DRM_MASTER) && !file_priv->is_master)) {
                retcode = -EACCES;
        } else {
                if (cmd & (IOC_IN | IOC_OUT)) {