From 0238f628944684dc676023ce8787bca479fb8a00 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Wed, 19 Feb 2025 21:03:53 +0200 Subject: [PATCH] fix(userspace/libc): fix error handling in ioctl function Signed-off-by: EnderIce2 --- Userspace/libc/src/std/sys/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userspace/libc/src/std/sys/ioctl.c b/Userspace/libc/src/std/sys/ioctl.c index c6c949a2..c361d223 100644 --- a/Userspace/libc/src/std/sys/ioctl.c +++ b/Userspace/libc/src/std/sys/ioctl.c @@ -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); }