提交 dab911d5 编写于 作者: A Anthony Koo 提交者: Alex Deucher

drm/amd/display: fix bug with index check

Signed-off-by: NAnthony Koo <Anthony.Koo@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Acked-by: NHarry Wentland <harry.wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册