提交 e66e4d64 编写于 作者: H Harry Wentland 提交者: Alex Deucher

drm/amd/display: Fix wrong index bug in set_avi_info_frame

Signed-off-by: NHarry Wentland <harry.wentland@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 e5cf325b
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册