Skip to content

Commit

Permalink
drm/amd/display: Fix wrong index bug in set_avi_info_frame
Browse files Browse the repository at this point in the history
Change-Id: I55fbea6bedae383d9ba50b02d30b25e7c09ff9d9
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
  • Loading branch information
Harry Wentland authored and Alex Deucher committed Jan 9, 2017
1 parent b129710 commit 1e816ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/gpu/drm/amd/display/dc/core/dc_resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1e816ac

Please sign in to comment.