projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
835ae3b
)
via-pmu: don't bother with access_ok()
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 23 Apr 2020 03:08:34 +0000
(23:08 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 29 May 2020 15:05:54 +0000
(11:05 -0400)
we are using copy_to_user() for actual copying
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/macintosh/via-pmu.c
patch
|
blob
|
history
diff --git
a/drivers/macintosh/via-pmu.c
b/drivers/macintosh/via-pmu.c
index 83eb05bf85ff936c6d805562fc97f20f69b70e23..8450d7c008d0fc249502e277739c3df11d07cbf8 100644
(file)
--- a/
drivers/macintosh/via-pmu.c
+++ b/
drivers/macintosh/via-pmu.c
@@
-2184,8
+2184,6
@@
pmu_read(struct file *file, char __user *buf,
if (count < 1 || !pp)
return -EINVAL;
- if (!access_ok(buf, count))
- return -EFAULT;
spin_lock_irqsave(&pp->lock, flags);
add_wait_queue(&pp->wait, &wait);