tomoyo_write_control(): get rid of pointless access_ok()
address is passed only to get_user() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
502fd722fe
commit
00fca6b53a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user