summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/request.c
diff options
context:
space:
mode:
authordzwdz2022-05-06 14:09:44 +0200
committerdzwdz2022-05-06 14:09:44 +0200
commit53d21d1ccb75004d0085efedd688b695707a3138 (patch)
tree90129714fc02259bfef7faeb91b1aa07fd03cac1 /src/kernel/vfs/request.c
parent38dd7bb947eb94ee77bf2ea3ccf16a326b991359 (diff)
kernel/proc: reorganize the functions
Diffstat (limited to 'src/kernel/vfs/request.c')
-rw-r--r--src/kernel/vfs/request.c2
1 files changed, 1 insertions, 1 deletions
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