Commit dab911d5 authored by Anthony Koo's avatar Anthony Koo Committed by Alex Deucher
Browse files

drm/amd/display: fix bug with index check

parent 6474b282
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -305,7 +305,7 @@ void mod_stats_update_event(struct mod_stats *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;

	events = core_stats->events;