1
0
Fork 0

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>
alistair/sunxi64-5.8
Al Viro 2020-04-22 23:08:34 -04:00
parent 835ae3bb53
commit d65aca9ff8
1 changed files with 0 additions and 2 deletions

View File

@ -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);