LibC: Missing varargs cleanup in ioctl

This commit is contained in:
Brian Gianforcaro 2020-08-16 17:41:20 -07:00 committed by Andreas Kling
parent dc278c3aa1
commit 9ffbe03bdb

View file

@ -38,6 +38,7 @@ int ioctl(int fd, unsigned request, ...)
va_start(ap, request);
unsigned arg = va_arg(ap, unsigned);
int rc = syscall(SC_ioctl, fd, request, arg);
va_end(ap);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
}