From eff7baa89a2b5e735b9e9b61d72845e289042877 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 15 Sep 2019 17:00:39 +0200 Subject: [PATCH] Revert "kernel/fs: Add missing IS_USER_ADDRESS check in user_vector_io." This reverts commit 2b5ebfcfd578f177968c5b923e5ccd6eb0195674. Breaks cmake. --- src/system/kernel/fs/fd.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/system/kernel/fs/fd.cpp b/src/system/kernel/fs/fd.cpp index db0f34b120..837d1d07a0 100644 --- a/src/system/kernel/fs/fd.cpp +++ b/src/system/kernel/fs/fd.cpp @@ -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,