⬢ DragonFlyBSD Kernel Audit
DF-5303 / fix.diff
← back to finding ↓ download raw
--- a/sys/bus/firewire/fwohci.c
+++ b/sys/bus/firewire/fwohci.c
@@ -369,7 +369,7 @@ fwohci_ioctl (struct dev_ioctl_args *ap)
 		break;
 /* Read DMA descriptors for debug  */
 	case DUMPDMA:
-		if(*dmach <= OHCI_MAX_DMA_CH ){
+		if(*dmach < OHCI_MAX_DMA_CH ){
 			dump_dma(fc, *dmach);
 			dump_db(fc, *dmach);
 		}else{