Skip to content

Commit a38547d

Browse files
author
Al Viro
committed
drm_read(): get rid of pointless access_ok()
address is passed only to copy_to_user() Signed-off-by: Al Viro <[email protected]>
1 parent d65aca9 commit a38547d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpu/drm/drm_file.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,9 +569,6 @@ ssize_t drm_read(struct file *filp, char __user *buffer,
569569
struct drm_device *dev = file_priv->minor->dev;
570570
ssize_t ret;
571571

572-
if (!access_ok(buffer, count))
573-
return -EFAULT;
574-
575572
ret = mutex_lock_interruptible(&file_priv->event_read_lock);
576573
if (ret)
577574
return ret;

0 commit comments

Comments
 (0)