mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
Revert "kernel/fs: Add missing IS_USER_ADDRESS check in user_vector_io."
This reverts commit 2b5ebfcfd5
.
Breaks cmake.
This commit is contained in:
parent
d761df9f70
commit
eff7baa89a
@ -822,13 +822,6 @@ common_user_vector_io(int fd, off_t pos, const iovec* userVecs, size_t count,
|
|||||||
|
|
||||||
ssize_t bytesTransferred = 0;
|
ssize_t bytesTransferred = 0;
|
||||||
for (uint32 i = 0; i < count; i++) {
|
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;
|
size_t length = vecs[i].iov_len;
|
||||||
if (write) {
|
if (write) {
|
||||||
status = descriptor->ops->fd_write(descriptor, pos,
|
status = descriptor->ops->fd_write(descriptor, pos,
|
||||||
|
Loading…
Reference in New Issue
Block a user