Architectural Support: x86_64 (#37)
[lunaix-os.git] / lunaix-os / kernel / device / device.c
index d3552c66d539f119b085697ad0d2840c36939cae..d32ca32bada4c093e47e728ec8a6836db9d22d22 100644 (file)
@@ -292,10 +292,14 @@ device_alert_poller(struct device* dev, int poll_evt)
     iopoll_wake_pollers(&dev->pollers);
 }
 
-__DEFINE_LXSYSCALL3(int, ioctl, int, fd, int, req, va_list, args)
+__DEFINE_LXSYSCALL3(int, ioctl, int, fd, int, req, sc_va_list, _args)
 {
     int errno = -1;
     struct v_fd* fd_s;
+    va_list args;
+
+    convert_valist(&args, _args);
+
     if ((errno &= vfs_getfd(fd, &fd_s))) {
         goto done;
     }