Commit acf83f86 authored by Wayne Lin's avatar Wayne Lin Committed by Alex Deucher

drm/amd/display: Avoid sending abnormal VSIF

[Why]
While setting hdmi_vic, hv_frame.vic is not initialized and might
assign a wrong value to hdmi_vic. Cause to send out VSIF with
abnormal value.

[How]
Initialize hv_frame and avi_frame
Signed-off-by: default avatarWayne Lin <Wayne.Lin@amd.com>
Reviewed-by: default avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7890fb20
...@@ -3399,6 +3399,9 @@ static void fill_stream_properties_from_drm_display_mode( ...@@ -3399,6 +3399,9 @@ static void fill_stream_properties_from_drm_display_mode(
struct hdmi_vendor_infoframe hv_frame; struct hdmi_vendor_infoframe hv_frame;
struct hdmi_avi_infoframe avi_frame; struct hdmi_avi_infoframe avi_frame;
memset(&hv_frame, 0, sizeof(hv_frame));
memset(&avi_frame, 0, sizeof(avi_frame));
timing_out->h_border_left = 0; timing_out->h_border_left = 0;
timing_out->h_border_right = 0; timing_out->h_border_right = 0;
timing_out->v_border_top = 0; timing_out->v_border_top = 0;
......
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