From 1f7e7501660123ff8f26e8c65e75c2b282b933ef Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 8 Jul 2022 14:40:44 +0200 Subject: syscall/fs_respond: get the file id from the buf argument Previously, file ids could only be positive integers, so their range was 31 bits - not enough to represent the entire memory. Now, pointers can be safely used as file ids. --- src/init/syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/init/syscalls.c') diff --git a/src/init/syscalls.c b/src/init/syscalls.c index f7e540f..14c0d52 100644 --- a/src/init/syscalls.c +++ b/src/init/syscalls.c @@ -42,7 +42,7 @@ int _syscall_fs_wait(char __user *buf, int max_len, struct fs_wait_response __us return _syscall(_SYSCALL_FS_WAIT, (int)buf, max_len, (int)res, 0); } -int _syscall_fs_respond(char __user *buf, int ret, int flags) { +int _syscall_fs_respond(void __user *buf, int ret, int flags) { return _syscall(_SYSCALL_FS_RESPOND, (int)buf, ret, flags, 0); } -- cgit v1.2.3