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

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;