Commit e66e4d64 authored by Harry Wentland's avatar Harry Wentland Committed by Alex Deucher

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

Signed-off-by: default avatarHarry Wentland <harry.wentland@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment