Commit d65aca9f authored by Al Viro's avatar Al Viro
Browse files

via-pmu: don't bother with access_ok()



we are using copy_to_user() for actual copying

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 835ae3bb
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);