Repository : ssh://git@diktynna/batman-adv
On branch : master
commit e946e0beec5764ed5182943bf764f8793f1364bf Author: Al Viro viro@zeniv.linux.org.uk Date: Thu Apr 23 10:19:04 2020 -0400
batman-adv: get rid of pointless access_ok()
address is passed only to copy_to_user()
Signed-off-by: Al Viro viro@zeniv.linux.org.uk Signed-off-by: Sven Eckelmann sven@narfation.org
e946e0beec5764ed5182943bf764f8793f1364bf net/batman-adv/icmp_socket.c | 3 --- 1 file changed, 3 deletions(-)
diff --git a/net/batman-adv/icmp_socket.c b/net/batman-adv/icmp_socket.c index ccb535c7..8bdabc03 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);