DragonFlyBSD Kernel Audit
DF-1622 / fix.diff
← back to finding ↓ download raw
diff --git a/dev/video/cxm/cxm_saa7115.c b/dev/video/cxm/cxm_saa7115.c
--- a/dev/video/cxm/cxm_saa7115.c
+++ b/dev/video/cxm/cxm_saa7115.c
@@ -822,7 +822,7 @@
 	unsigned int nsettings;
 	const struct cxm_saa7115_setting *settings;
 
-	for (i = 0; NUM_ELEMENTS(saa7115_scalings); i++)
+	for (i = 0; i < NUM_ELEMENTS(saa7115_scalings); i++)
 		if (saa7115_scalings[i].width == width
 		    && saa7115_scalings[i].height == height
 		    && saa7115_scalings[i].fps == fps)