summaryrefslogtreecommitdiff
path: root/linux-core/drm_ioctl.c
diff options
context:
space:
mode:
authorJeff Hartmann <jhartmann@valinux.com>2001-07-20 22:16:04 +0000
committerJeff Hartmann <jhartmann@valinux.com>2001-07-20 22:16:04 +0000
commit5e8ba79eb6aabd85f52de43fcf30722268857f60 (patch)
treeeb78245049182c1d482391b0d043ad9f8cd79524 /linux-core/drm_ioctl.c
parentae5b4effc05cd5ac44ab44c5c733c6599652f1eb (diff)
Merge checker fixes from Alan Cox made to the drm in the ac kernel tree.
These aren't really security problems, but Alan has made some arguments that have convinced me that the code should be fixed anyway.
Diffstat (limited to 'linux-core/drm_ioctl.c')
-rw-r--r--linux-core/drm_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_ioctl.c b/linux-core/drm_ioctl.c
index 1cc8f31f..c2761808 100644
--- a/linux-core/drm_ioctl.c
+++ b/linux-core/drm_ioctl.c
@@ -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;