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:
00f549b
)
drm: fix the ioctl to not believe userspace.
author
Dave Airlie
<airlied@redhat.com>
Fri, 20 Jun 2008 02:03:41 +0000
(12:03 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Fri, 20 Jun 2008 02:03:41 +0000
(12:03 +1000)
believing userspace causes oopses
linux-core/drm_drv.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_drv.c
b/linux-core/drm_drv.c
index
609fc83
..
b375fa1
100644
(file)
--- a/
linux-core/drm_drv.c
+++ b/
linux-core/drm_drv.c
@@
-631,6
+631,8
@@
long drm_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
goto err_i1;
}
#endif
+ cmd = ioctl->cmd;
+
func = ioctl->func;
/* is there a local override? */
if ((nr == DRM_IOCTL_NR(DRM_IOCTL_DMA)) && dev->driver->dma_ioctl)