diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2020-04-22 23:08:34 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-05-29 11:05:54 -0400 |
commit | d65aca9ff83b04fa1062800c7796d44729ef55af (patch) | |
tree | 0ae7c91f40414514268c426bc3549c1d73fc98e1 /drivers/macintosh | |
parent | 835ae3bb530a2e40dd5615c3728d4a78320f6fb8 (diff) | |
download | linux-stable-d65aca9ff83b04fa1062800c7796d44729ef55af.tar.gz linux-stable-d65aca9ff83b04fa1062800c7796d44729ef55af.tar.bz2 linux-stable-d65aca9ff83b04fa1062800c7796d44729ef55af.zip |
via-pmu: don't bother with access_ok()
we are using copy_to_user() for actual copying
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/via-pmu.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 83eb05bf85ff..8450d7c008d0 100644 --- 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); |