Эх сурвалжийг харах

drm/amd/display: fix bug with index check

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Anthony Koo 7 жил өмнө
parent
commit
dab911d535

+ 1 - 1
drivers/gpu/drm/amd/display/modules/stats/stats.c

@@ -305,7 +305,7 @@ void mod_stats_update_event(struct mod_stats *mod_stats,
 
 
 	core_stats = MOD_STATS_TO_CORE(mod_stats);
 	core_stats = MOD_STATS_TO_CORE(mod_stats);
 
 
-	if (core_stats->index >= core_stats->entries)
+	if (core_stats->event_index >= core_stats->event_entries)
 		return;
 		return;
 
 
 	events = core_stats->events;
 	events = core_stats->events;