⬢ DragonFlyBSD Kernel Audit
DF-5419 / fix.diff
← back to finding ↓ download raw
--- a/sys/bus/ppbus/ppb_1284.c
+++ b/sys/bus/ppbus/ppb_1284.c
@@ -591,6 +591,8 @@
 {
 	int error = 0;
 
+	*read = 0;
+
 	/* fill the buffer with 0s */
 	bzero(buffer, max);