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>
This commit is contained in:
Anthony Koo 2018-04-27 15:23:23 -04:00 committed by Alex Deucher
parent 6474b2824d
commit dab911d535
1 changed files with 1 additions and 1 deletions

View File

@ -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;