From 9e056016ce39036abbc223260e49964ef74aaa82 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 15 Sep 2021 06:58:49 +0000 Subject: fs_wait: pass the file ID too --- src/kernel/vfs/request.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/kernel/vfs/request.c') 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: -- cgit v1.2.3