Revert "kernel/fs: Add missing IS_USER_ADDRESS check in user_vector_io."

This reverts commit 2b5ebfcfd5.

Breaks cmake.
This commit is contained in:
Adrien Destugues 2019-09-15 17:00:39 +02:00
parent d761df9f70
commit eff7baa89a
1 changed files with 0 additions and 7 deletions

View File

@ -822,13 +822,6 @@ common_user_vector_io(int fd, off_t pos, const iovec* userVecs, size_t count,
ssize_t bytesTransferred = 0;
for (uint32 i = 0; i < count; i++) {
if (!IS_USER_ADDRESS(vecs[i].iov_base)) {
status = B_BAD_ADDRESS;
if (bytesTransferred == 0)
return status;
break;
}
size_t length = vecs[i].iov_len;
if (write) {
status = descriptor->ops->fd_write(descriptor, pos,