Commit 38c53ca3 authored by Al Viro's avatar Al Viro

batadv_socket_read(): get rid of pointless access_ok()

address is passed only to copy_to_user()
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent bbced07d
......@@ -135,9 +135,6 @@ static ssize_t batadv_socket_read(struct file *file, char __user *buf,
if (!buf || count < sizeof(struct batadv_icmp_packet))
return -EINVAL;
if (!access_ok(buf, count))
return -EFAULT;
error = wait_event_interruptible(socket_client->queue_wait,
socket_client->queue_len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment