mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-05 20:39:16 +00:00
fix(userspace/libc): fix error handling in ioctl function
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@ -26,5 +26,5 @@ export int ioctl(int fd, unsigned long op, ...)
|
||||
va_start(args, op);
|
||||
int ret = call_ioctl(fd, op, args);
|
||||
va_end(args);
|
||||
return ret;
|
||||
return __check_errno(ret, -1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user