DragonFlyBSD Kernel Audit
DF-1008 / 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
@@ -2649,7 +2649,7 @@
 
 	if (r > dbch->xferq.psize) {
 		device_printf(sc->fc.dev, "Invalid packet length %d\n", r);
-		/* panic ? */
+		return (-1);
 	}
 
 	return r;