diff options
author | dzwdz | 2022-10-08 16:09:04 +0200 |
---|---|---|
committer | dzwdz | 2022-10-08 20:05:28 +0200 |
commit | 06affde06e2b1d3fe9c7c3fa60f5662e9957534d (patch) | |
tree | 5f4409a556b0edf62044dd608d8c798a0d09f005 /src/kernel/vfs/request.c | |
parent | f25b6a7d38f1a4b656e3a7ad431afcf535f1fdce (diff) |
syscall/open: don't check for free handles
doesn't really prevent anything, and makes it harder to test edge cases
Diffstat (limited to 'src/kernel/vfs/request.c')
-rw-r--r-- | src/kernel/vfs/request.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index 0a377d3..a129f2e 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -64,6 +64,7 @@ void vfsreq_finish(struct vfs_request *req, char __user *stored, long ret, // TODO write tests for caller getting killed while opening a file if (!req->caller) panic_unimplemented(); ret = process_handle_put(req->caller, h); + if (ret < 0) ret = -EMFILE; } else { ret = -1; } |