diff options
author | dzwdz | 2021-09-15 06:58:49 +0000 |
---|---|---|
committer | dzwdz | 2021-09-15 06:58:49 +0000 |
commit | 9e056016ce39036abbc223260e49964ef74aaa82 (patch) | |
tree | 850a89bf9e9a268803dd6cb385c75b86c7859690 /src/kernel/vfs/request.c | |
parent | 06f089b35046342fca2c30040749c632785ce6c6 (diff) |
fs_wait: pass the file ID too
Diffstat (limited to 'src/kernel/vfs/request.c')
-rw-r--r-- | src/kernel/vfs/request.c | 4 |
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: |