⬢ DragonFlyBSD Kernel Audit
DF-4166 / fix.diff
← back to finding ↓ download raw
--- /home/maxx/dfbsd/dfbsd/sys/dev/drm/amd/display/dc/bios/bios_parser2.c	2026-06-29 12:51:18.000000000 +0000
+++ bp2_fix4166.c	2026-09-18 09:49:04.512579596 +0000
@@ -366,7 +366,7 @@
 
 	table_index = record->i2c_id  & I2C_HW_LANE_MUX;
 
-	if (count < table_index) {
+	if (count <= table_index) {
 		bool find_valid = false;
 
 		for (table_index = 0; table_index < count; table_index++) {