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

drm/amd/display: fix bug with index check

Signed-off-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6474b282
...@@ -305,7 +305,7 @@ void mod_stats_update_event(struct mod_stats *mod_stats, ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment