DragonFlyBSD Kernel Audit
DF-1324 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/drm/amd/powerplay/smumgr/iceland_smumgr.c b/sys/dev/drm/amd/powerplay/smumgr/iceland_smumgr.c
--- a/sys/dev/drm/amd/powerplay/smumgr/iceland_smumgr.c
+++ b/sys/dev/drm/amd/powerplay/smumgr/iceland_smumgr.c
@@ -674,7 +674,7 @@
 
 	table->MvddLevelCount = data->mvdd_voltage_table.count;
 
-	for (count = 0; count < table->VddciLevelCount; count++) {
+	for (count = 0; count < table->MvddLevelCount; count++) {
 		result = iceland_populate_smc_voltage_table(hwmgr,
 				&(data->mvdd_voltage_table.entries[count]),
 				&table->MvddLevel[count]);