From 53d21d1ccb75004d0085efedd688b695707a3138 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 6 May 2022 14:09:44 +0200 Subject: kernel/proc: reorganize the functions --- src/kernel/vfs/request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/vfs/request.c') diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index 516e6e0..d6f348a 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -35,7 +35,7 @@ void vfsreq_finish(struct vfs_request *req, int ret) { // we need to wrap the id returned by the VFS in a handle passed to // the client if (req->caller) { - handle_t handle = process_find_handle(req->caller, 0); + handle_t handle = process_find_free_handle(req->caller, 0); if (handle < 0) panic_invalid_state(); // we check for free handles before the open() call -- cgit v1.2.3