summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2017-01-04 18:54:29 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 17:08:44 -0400
commite66e4d64289b647f7787d257dd2be0055ae7df94 (patch)
tree1474e25a5398a88c01d0e0daf2489e8084b0db34
parente5cf325b0c21e626c402b57a055f02c478e3df40 (diff)
downloadlinux-stable-e66e4d64289b647f7787d257dd2be0055ae7df94.tar.gz
linux-stable-e66e4d64289b647f7787d257dd2be0055ae7df94.tar.bz2
linux-stable-e66e4d64289b647f7787d257dd2be0055ae7df94.zip
drm/amd/display: Fix wrong index bug in set_avi_info_frame
Signed-off-by: Harry Wentland <harry.wentland@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc_resource.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
index 3e3379529b69..80fe6b9f9397 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -1490,9 +1490,10 @@ static void set_avi_info_frame(
info_packet->hb2 =
info_frame.avi_info_packet.info_packet_hdmi.packet_raw_data.hb2;
- for (byte_index = 0; byte_index < sizeof(info_packet->sb); byte_index++)
+ for (byte_index = 0; byte_index < sizeof(info_frame.avi_info_packet.
+ info_packet_hdmi.packet_raw_data.sb); byte_index++)
info_packet->sb[byte_index] = info_frame.avi_info_packet.
- info_packet_hdmi.packet_raw_data.sb[byte_index];
+ info_packet_hdmi.packet_raw_data.sb[byte_index];
info_packet->valid = true;
}