projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d65aca9
)
drm_read(): get rid of pointless access_ok()
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 8 May 2020 01:13:55 +0000
(21:13 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 29 May 2020 15:05:54 +0000
(11:05 -0400)
address is passed only to copy_to_user()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/gpu/drm/drm_file.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/drm_file.c
b/drivers/gpu/drm/drm_file.c
index eb009d3ab48fa318ddd51dae56784d288ccef17d..6a1f6c802415518319b1393c9d954a82f7af231e 100644
(file)
--- a/
drivers/gpu/drm/drm_file.c
+++ b/
drivers/gpu/drm/drm_file.c
@@
-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;