diff options
Diffstat (limited to 'src/kernel/vfs/request.c')
-rw-r--r-- | src/kernel/vfs/request.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index f431eac..45a7ae7 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -63,12 +63,13 @@ _Noreturn void vfs_request_pass2handler(struct vfs_request *req) { res.capacity = req->output.len; res.id = req->id; res.offset = req->offset; + res.op = req->type; if (!virt_cpy_to(handler->pages, handler->awaited_req.res, &res, sizeof res)) goto fail; // can't copy response struct - regs_savereturn(&handler->regs, req->type); + regs_savereturn(&handler->regs, 0); process_switch(handler); fail: panic_unimplemented(); // TODO |