DragonFlyBSD Kernel Audit
DF-1006 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/bus/firewire/fwohci.c b/sys/bus/firewire/fwohci.c
--- a/sys/bus/firewire/fwohci.c
+++ b/sys/bus/firewire/fwohci.c
@@ -2344,7 +2344,7 @@
 		"Depend",
 		"Stat",
 		"Cnt");
-	for( i = 0 ; i <= max ; i ++){
+	for( i = 0 ; i < max ; i ++){
 		cmd = FWOHCI_DMA_READ(db[i].db.desc.cmd);
 		res = FWOHCI_DMA_READ(db[i].db.desc.res);
 		key = cmd & OHCI_KEY_MASK;