diff options
author | Anthony Koo <Anthony.Koo@amd.com> | 2018-04-27 15:23:23 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-05-18 16:08:28 -0500 |
commit | dab911d535ae24a39b4e383c0dffaa3e5583883d (patch) | |
tree | f84eac3cf4416c5cd41fbdd96f24f8715036ca05 /drivers/gpu/drm/amd/display | |
parent | 6474b2824d71ac6cd1005aff8841dd8bcfa0901d (diff) | |
download | linux-stable-dab911d535ae24a39b4e383c0dffaa3e5583883d.tar.gz linux-stable-dab911d535ae24a39b4e383c0dffaa3e5583883d.tar.bz2 linux-stable-dab911d535ae24a39b4e383c0dffaa3e5583883d.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display')
-rw-r--r-- | drivers/gpu/drm/amd/display/modules/stats/stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/stats/stats.c b/drivers/gpu/drm/amd/display/modules/stats/stats.c index 4b00bae725b9..fe9e4b316d3a 100644 --- a/drivers/gpu/drm/amd/display/modules/stats/stats.c +++ b/drivers/gpu/drm/amd/display/modules/stats/stats.c @@ -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; |