mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
fix(userspace/libc): fix error handling in ioctl function
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
parent
ce59b6ea03
commit
0238f62894
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user