diff options
author | David Dawes <dawes@xfree86.org> | 2001-07-30 14:29:49 +0000 |
---|---|---|
committer | David Dawes <dawes@xfree86.org> | 2001-07-30 14:29:49 +0000 |
commit | 6039ed63d631073f6ecdf919a3cf94bf20a524ce (patch) | |
tree | 1508e260fe81f032713d8ec36c4f5f7ceebb5fad /linux/drm_ioctl.h | |
parent | d5031ec3b7986943d0c7b17dc2e03aa0a97348e0 (diff) |
Merge from trunk.
Diffstat (limited to 'linux/drm_ioctl.h')
-rw-r--r-- | linux/drm_ioctl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drm_ioctl.h b/linux/drm_ioctl.h index 1cc8f31f0..c2761808a 100644 --- a/linux/drm_ioctl.h +++ b/linux/drm_ioctl.h @@ -82,7 +82,7 @@ int DRM(setunique)(struct inode *inode, struct file *filp, if (copy_from_user(&u, (drm_unique_t *)arg, sizeof(u))) return -EFAULT; - if (!u.unique_len) + if (!u.unique_len || u.unique_len > 1024) return -EINVAL; dev->unique_len = u.unique_len; |