DragonFlyBSD Kernel Audit
DF-1922 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/raid/aac/aac_debug.c b/sys/dev/raid/aac/aac_debug.c
--- a/sys/dev/raid/aac/aac_debug.c
+++ b/sys/dev/raid/aac/aac_debug.c
@@ -240,7 +240,7 @@
 		if (sg != NULL) {
 			device_printf(sc->aac_dev,
 				      "  %d s/g entries\n", sg->SgCount);
-			for (i = 0; i < sg->SgCount; i++)
+			for (i = 0; i < sg->SgCount && i < 17; i++)
 				device_printf(sc->aac_dev, "  0x%08x/%d\n",
 					      sg->SgEntry[i].SgAddress,
 					      sg->SgEntry[i].SgByteCount);