summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/request.c
diff options
context:
space:
mode:
authordzwdz2021-09-12 18:31:15 +0200
committerdzwdz2021-09-12 18:31:15 +0200
commitd789f43bb82b8c43f0e8a5a53a4ce8b30d1c0984 (patch)
treec07b0e5aafbeeedfc9ffcb9eb981b3f5c7059c2d /src/kernel/vfs/request.c
parent5194b7f3a6eadc7439d28da6e2a49330ccd273a9 (diff)
first working access function!
Diffstat (limited to 'src/kernel/vfs/request.c')
-rw-r--r--src/kernel/vfs/request.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c
index 9f0a14f..0524c53 100644
--- a/src/kernel/vfs/request.c
+++ b/src/kernel/vfs/request.c
@@ -57,7 +57,9 @@ _Noreturn void vfs_request_pass2handler(struct vfs_request *req) {
handler->awaited_req.buf, req->input.buf_kern, len))
goto fail; // can't copy buffer
} else {
- panic(); // TODO
+ if (!virt_cpy(handler->pages, handler->awaited_req.buf,
+ req->caller->pages, req->input.buf_kern, len))
+ goto fail; // can't copy buffer
}
if (!virt_cpy_to(handler->pages,