projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53937a1
)
DRM_CONTROL_ALLOW logic was reversed
author
Alan Hourihane
<alanh@tungstengraphics.com>
Tue, 5 Feb 2008 15:12:46 +0000
(15:12 +0000)
committer
Alan Hourihane
<alanh@tungstengraphics.com>
Tue, 5 Feb 2008 15:12:46 +0000
(15:12 +0000)
linux-core/drm_drv.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_drv.c
b/linux-core/drm_drv.c
index
b0b44c9
..
927225f
100644
(file)
--- a/
linux-core/drm_drv.c
+++ b/
linux-core/drm_drv.c
@@
-666,7
+666,7
@@
long drm_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
} 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_CONTROL_ALLOW)) &&
(file_priv->minor->type == DRM_MINOR_CONTROL)) ) {
+ ((
ioctl->flags & DRM_CONTROL_ALLOW) && !
(file_priv->minor->type == DRM_MINOR_CONTROL)) ) {
retcode = -EACCES;
} else {
retcode = func(dev, kdata, file_priv);