[PATCH 4/8] drm/amd/display: Fix wrong index bug in set_avi_info_frame
Harry Wentland
harry.wentland at amd.com
Sat Jan 7 00:22:26 UTC 2017
Change-Id: I55fbea6bedae383d9ba50b02d30b25e7c09ff9d9
Signed-off-by: Harry Wentland <harry.wentland at amd.com>
Acked-by: Harry Wentland <Harry.Wentland at amd.com>
---
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.9.3
More information about the amd-gfx
mailing list