⬢ DragonFlyBSD Kernel Audit
DF-5100 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/misc/joy/joy.c
+++ b/sys/dev/misc/joy/joy.c
@@ -190,7 +190,7 @@
     crit_enter();
 
     bus_space_write_1 (bt, port, 0, 0xff);
-    nanotime(&start);
+    nanouptime(&start);
     end.tv_sec = 0;
     end.tv_nsec = joy->timeout[joypart(dev)] * 1000;
     timespecadd(&end, &start, &end);
@@ -201,7 +201,7 @@
 	state = bus_space_read_1 (bt, port, 0);
 	if (joypart(dev) == 1)
 	    state >>= 2;
-	nanotime(&t);
+	nanouptime(&t);
 	if (!timespecisset(&x) && !(state & 0x01))
 	    x = t;
 	if (!timespecisset(&y) && !(state & 0x02))