Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84027
b: refs/heads/master
c: 7ffa05e
h: refs/heads/master
i:
  84025: 3e15b08
  84023: 5b471c9
v: v3
  • Loading branch information
Ian Romanick authored and Dave Airlie committed Feb 7, 2008
1 parent 0ccc790 commit bf5c70c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 47a184a80800dd69abd1206eea1b961070ce2ca3
refs/heads/master: 7ffa05e0518ebc055ef8f68d7d53e5f7d2ba3428
6 changes: 5 additions & 1 deletion trunk/drivers/char/drm/drm_ioc32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,8 +1051,12 @@ long drm_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
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 >= ARRAY_SIZE(drm_compat_ioctls))
return -ENOTTY;
return drm_ioctl(filp->f_dentry->d_inode, filp, cmd, arg);

fn = drm_compat_ioctls[nr];

Expand Down

0 comments on commit bf5c70c

Please sign in to comment.