From c38fa859a6fb3e9fce736ead57ee776fe433a0d0 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 2 May 2022 18:58:57 +0200 Subject: kernel/vfs: always separately allocate the request object --- src/kernel/vfs/root.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/vfs/root.c') diff --git a/src/kernel/vfs/root.c b/src/kernel/vfs/root.c index 36e9da1..4a1148e 100644 --- a/src/kernel/vfs/root.c +++ b/src/kernel/vfs/root.c @@ -50,14 +50,14 @@ static void req_preprocess(struct vfs_request *req, size_t max_len) { static void wait_callback(struct process *proc) { - vfs_root_handler(&proc->waits4irq.req); + vfs_root_handler(proc->waits4irq.req); } static bool wait_setup(struct vfs_request *req, bool *ready, bool (*ready_fn)()) { if (!ready_fn()) { *ready = false; process_transition(req->caller, PS_WAITS4IRQ); - req->caller->waits4irq.req = *req; + req->caller->waits4irq.req = req; req->caller->waits4irq.ready = ready_fn; req->caller->waits4irq.callback = wait_callback; return true; -- cgit v1.2.3