DragonFlyBSD Kernel Audit
DF-2078 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/drm/amd/powerplay/hwmgr/pp_psm.c b/sys/dev/drm/amd/powerplay/hwmgr/pp_psm.c
@@ -211,9 +211,9 @@
 		return 0;
 
 	table_entries = hwmgr->num_ps;
-	*state = hwmgr->ps;
 
 restart_search:
+	*state = hwmgr->ps;
 	for (i = 0; i < table_entries; i++) {
 		if ((*state)->classification.ui_label & label_id)
 			return 0;