batadv_socket_read(): get rid of pointless access_ok()
address is passed only to copy_to_user() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
bbced07d99
commit
38c53ca3c1
@ -135,9 +135,6 @@ static ssize_t batadv_socket_read(struct file *file, char __user *buf,
|
|||||||
if (!buf || count < sizeof(struct batadv_icmp_packet))
|
if (!buf || count < sizeof(struct batadv_icmp_packet))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (!access_ok(buf, count))
|
|
||||||
return -EFAULT;
|
|
||||||
|
|
||||||
error = wait_event_interruptible(socket_client->queue_wait,
|
error = wait_event_interruptible(socket_client->queue_wait,
|
||||||
socket_client->queue_len);
|
socket_client->queue_len);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user