⬢ DragonFlyBSD Kernel Audit
DF-2529 / fix.diff
← back to finding ↓ download raw
--- /home/maxx/dfbsd/dfbsd/sys/dev/disk/vpo/immio.c	2026-07-22 23:04:24.321615409 +0000
+++ sys/dev/disk/vpo/immio.c	2026-10-24 09:11:52.110751358 +0000
@@ -744,7 +744,8 @@
 		/* ZIP+ wants to send data? */
 		if (r == (char)0x88) {
 			len = (((blen - *count) >= VP0_SECTOR_SIZE)) ?
-				VP0_SECTOR_SIZE : 2;
+				VP0_SECTOR_SIZE : 1;	/* never past blen:
+					matches the IN-direction fallback */
 
 			error = imm_outstr(vpo, &buffer[*count], len);
 		} else {