fix(userspace/libc): fix error handling in ioctl function

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
EnderIce2 2025-02-19 21:03:53 +02:00
parent ce59b6ea03
commit 0238f62894
No known key found for this signature in database
GPG Key ID: 2EE20AF089811A5A

View File

@ -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);
}