Commit 00fca6b5 authored by Al Viro's avatar Al Viro

tomoyo_write_control(): get rid of pointless access_ok()

address is passed only to get_user()
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 502fd722
......@@ -2662,8 +2662,6 @@ ssize_t tomoyo_write_control(struct tomoyo_io_buffer *head,
if (!head->write)
return -EINVAL;
if (!access_ok(buffer, buffer_len))
return -EFAULT;
if (mutex_lock_interruptible(&head->io_sem))
return -EINTR;
head->read_user_buf_avail = 0;
......
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