diff options
Diffstat (limited to 'drivers/gpu/drm/drm_file.c')
-rw-r--r-- | drivers/gpu/drm/drm_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_file.c b/drivers/gpu/drm/drm_file.c index ffa8dc35515f..46f48f245eb5 100644 --- a/drivers/gpu/drm/drm_file.c +++ b/drivers/gpu/drm/drm_file.c | |||
@@ -525,7 +525,7 @@ ssize_t drm_read(struct file *filp, char __user *buffer, | |||
525 | struct drm_device *dev = file_priv->minor->dev; | 525 | struct drm_device *dev = file_priv->minor->dev; |
526 | ssize_t ret; | 526 | ssize_t ret; |
527 | 527 | ||
528 | if (!access_ok(VERIFY_WRITE, buffer, count)) | 528 | if (!access_ok(buffer, count)) |
529 | return -EFAULT; | 529 | return -EFAULT; |
530 | 530 | ||
531 | ret = mutex_lock_interruptible(&file_priv->event_read_lock); | 531 | ret = mutex_lock_interruptible(&file_priv->event_read_lock); |