From e66e4d64289b647f7787d257dd2be0055ae7df94 Mon Sep 17 00:00:00 2001 From: Harry Wentland Date: Wed, 4 Jan 2017 18:54:29 -0500 Subject: [PATCH] drm/amd/display: Fix wrong index bug in set_avi_info_frame Signed-off-by: Harry Wentland Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 5 +++-- 1 file 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; } -- 2.30.2