mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
835ae3bb53
commit
d65aca9ff8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue