forked from Minki/linux
drm_read(): get rid of pointless access_ok()
address is passed only to copy_to_user() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
d65aca9ff8
commit
a38547d435
@ -569,9 +569,6 @@ ssize_t drm_read(struct file *filp, char __user *buffer,
|
||||
struct drm_device *dev = file_priv->minor->dev;
|
||||
ssize_t ret;
|
||||
|
||||
if (!access_ok(buffer, count))
|
||||
return -EFAULT;
|
||||
|
||||
ret = mutex_lock_interruptible(&file_priv->event_read_lock);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user