projects
/
platform
/
upstream
/
libdrm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[intel] Quirk away MSI support on 945G/GM.
[platform/upstream/libdrm.git]
/
linux-core
/
drm_ioc32.c
diff --git
a/linux-core/drm_ioc32.c
b/linux-core/drm_ioc32.c
index
558376d
..
0188154
100644
(file)
--- a/
linux-core/drm_ioc32.c
+++ b/
linux-core/drm_ioc32.c
@@
-1051,8
+1051,13
@@
long drm_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
drm_ioctl_compat_t *fn;
int ret;
drm_ioctl_compat_t *fn;
int ret;
+
+ /* Assume that ioctls without an explicit compat routine will "just
+ * work". This may not always be a good assumption, but it's better
+ * than always failing.
+ */
if (nr >= DRM_ARRAY_SIZE(drm_compat_ioctls))
if (nr >= DRM_ARRAY_SIZE(drm_compat_ioctls))
- return
-ENOTTY
;
+ return
drm_ioctl(filp->f_dentry->d_inode, filp, cmd, arg)
;
fn = drm_compat_ioctls[nr];
fn = drm_compat_ioctls[nr];