aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules/freesync
diff options
context:
space:
mode:
authorDmytro Laktyushkin <[email protected]>2017-04-26 14:54:45 +0000
committerAlex Deucher <[email protected]>2017-09-26 22:06:42 +0000
commit1c29313b96fbe9606ecaab540800d20f2ae88adc (patch)
treef5313da15bb9421bd2f8c97e2ea7a480dea1f57c /drivers/gpu/drm/amd/display/modules/freesync
parentdrm/amd/display: Define dithering options (diff)
downloadkernel-1c29313b96fbe9606ecaab540800d20f2ae88adc.tar.gz
kernel-1c29313b96fbe9606ecaab540800d20f2ae88adc.zip
drm/amd/display: fix crash caused by incorrect index being used for array
Signed-off-by: Dmytro Laktyushkin <[email protected]> Acked-by: Harry Wentland <[email protected]> Reviewed-by: Anthony Koo <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync')
-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);
}