mirror of https://gitee.com/openkylin/linux.git
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:
parent
6474b2824d
commit
dab911d535
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue