summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-04-23 17:19:04 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2020-05-21 03:31:33 +0300
commit38c53ca3c114fa2a7030f0d1f54feaf044957609 (patch)
tree1df74b72e5e917b246e9c1ec9e749d9a51d0a7a4 /net
parentbbced07d9952ca290e8de3957c75b8b401d7a867 (diff)
downloadlinux-38c53ca3c114fa2a7030f0d1f54feaf044957609.tar.xz
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>
Diffstat (limited to 'net')
-rw-r--r--net/batman-adv/icmp_socket.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/batman-adv/icmp_socket.c b/net/batman-adv/icmp_socket.c
index ccb535c77e5d..8bdabc03b0b2 100644
--- a/net/batman-adv/icmp_socket.c
+++ b/net/batman-adv/icmp_socket.c
@@ -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);