⬢ DragonFlyBSD Kernel Audit
DF-5418 / fix.diff
← back to finding ↓ download raw
--- a/sys/bus/ppbus/ppb_1284.c
+++ b/sys/bus/ppbus/ppb_1284.c
@@ -203,7 +203,7 @@
 		DELAY(1);
 
 	/* check termination */
-	if (!(ppb_rstr(bus) & SELECT) || !spin) {
+	if (!(ppb_rstr(bus) & SELECT) || spin < 0) {
 		error = ENODEV;
 		goto error;
 	}