diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2020-04-23 05:08:34 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-05-29 17:05:54 +0200 |
commit | d65aca9ff83b04fa1062800c7796d44729ef55af (patch) | |
tree | 0ae7c91f40414514268c426bc3549c1d73fc98e1 /drivers/macintosh | |
parent | drivers/crypto/ccp/sev-dev.c: get rid of pointless access_ok() (diff) | |
download | linux-d65aca9ff83b04fa1062800c7796d44729ef55af.tar.xz linux-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); |