Skip to content

Commit d65aca9

Browse files
author
Al Viro
committed
via-pmu: don't bother with access_ok()
we are using copy_to_user() for actual copying Signed-off-by: Al Viro <[email protected]>
1 parent 835ae3b commit d65aca9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/macintosh/via-pmu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2184,8 +2184,6 @@ pmu_read(struct file *file, char __user *buf,
21842184

21852185
if (count < 1 || !pp)
21862186
return -EINVAL;
2187-
if (!access_ok(buf, count))
2188-
return -EFAULT;
21892187

21902188
spin_lock_irqsave(&pp->lock, flags);
21912189
add_wait_queue(&pp->wait, &wait);

0 commit comments

Comments
 (0)