提交 38c53ca3 编写于 作者: A Al Viro

batadv_socket_read(): get rid of pointless access_ok()

address is passed only to copy_to_user()
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册