diff options
author | dzwdz | 2022-04-16 18:31:21 +0200 |
---|---|---|
committer | dzwdz | 2022-04-16 18:31:21 +0200 |
commit | e55ace0f517ede6f3635341c8adadc7b90aa75c5 (patch) | |
tree | b86f83d32a35e8996854f0c0502365e07fef28bd /src/kernel/syscalls.c | |
parent | 42e4b941b70499f5cf10f41126af1634821d72d5 (diff) |
kernel/vfs: be more strict about the state of `vfs_backend.handler`
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 31bd0de..b424bf1 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -206,6 +206,7 @@ int _syscall_fs_wait(char __user *buf, int max_len, struct fs_wait_response __us if (!backend) return -1; process_transition(process_current, PS_WAITS4REQUEST); + assert(!backend->handler); // TODO allow multiple processes to wait on the same backend backend->handler = process_current; /* checking the validity of those pointers here would make * vfs_request_accept simpler. TODO? */ |