summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/request.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/vfs/request.c')
-rw-r--r--src/kernel/vfs/request.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c
index 5836b94..9a51688 100644
--- a/src/kernel/vfs/request.c
+++ b/src/kernel/vfs/request.c
@@ -66,6 +66,10 @@ _Noreturn void vfs_request_pass2handler(struct vfs_request *req) {
handler->awaited_req.len, &len, sizeof len))
goto fail; // can't copy new length
+ if (!virt_cpy_to(handler->pages,
+ handler->awaited_req.id, &req->id, sizeof req->id))
+ goto fail; // can't copy id
+
regs_savereturn(&handler->regs, req->type);
process_switch(handler);
fail: