diff options
author | Wayne Lin <[email protected]> | 2019-10-21 13:24:36 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2019-10-25 16:50:07 -0400 |
commit | acf83f86b2e1dd39fdc4e5e7072aaf21d0563558 (patch) | |
tree | 120bdb1c0ddf1c54ce43c5902a158d6a64768c3d | |
parent | 7890fb20a83b31cb737ca9658fc35df111cf6a81 (diff) |
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: Wayne Lin <[email protected]>
Reviewed-by: Nicholas Kazlauskas <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 0860dda99c8c..a0bad136e062 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -3399,6 +3399,9 @@ static void fill_stream_properties_from_drm_display_mode( struct hdmi_vendor_infoframe hv_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_right = 0; timing_out->v_border_top = 0; |