summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules
diff options
context:
space:
mode:
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>2017-04-26 10:54:45 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:06:42 -0400
commit1c29313b96fbe9606ecaab540800d20f2ae88adc (patch)
treef5313da15bb9421bd2f8c97e2ea7a480dea1f57c /drivers/gpu/drm/amd/display/modules
parentb92033b67879380baee9ebd14da78c7dc36e1ea5 (diff)
downloadlinux-stable-1c29313b96fbe9606ecaab540800d20f2ae88adc.tar.gz
linux-stable-1c29313b96fbe9606ecaab540800d20f2ae88adc.tar.bz2
linux-stable-1c29313b96fbe9606ecaab540800d20f2ae88adc.zip
drm/amd/display: fix crash caused by incorrect index being used for array
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Reviewed-by: Anthony Koo <Anthony.Koo@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules')
-rw-r--r--drivers/gpu/drm/amd/display/modules/freesync/freesync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
index f6223e6b3536..d3d57008271b 100644
--- a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
+++ b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
@@ -1122,7 +1122,7 @@ void mod_freesync_notify_mode_change(struct mod_freesync *mod_freesync,
* current mode
*/
calc_freesync_range(core_freesync, *streams, state,
- core_freesync->map[stream_index].caps->
+ core_freesync->map[map_index].caps->
min_refresh_in_micro_hz,
state->nominal_refresh_rate_in_micro_hz);
}