From 5e8ba79eb6aabd85f52de43fcf30722268857f60 Mon Sep 17 00:00:00 2001 From: Jeff Hartmann Date: Fri, 20 Jul 2001 22:16:04 +0000 Subject: 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. --- linux-core/drm_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-core/drm_ioctl.c') 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; -- cgit v1.2.3