drm/amd/display: Add error check for avi and vendor infoframe setup function
authorWentao Liang <vulab@iscas.ac.cn>
Mon, 14 Apr 2025 03:14:39 +0000 (11:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Apr 2025 14:56:13 +0000 (10:56 -0400)
commit6027cbee190049629d3028789659e0763562e21e
tree739525bff196807e303e3952f9ed0ebc7194dcd0
parent8f23a97907d92e16d34d4a2a9dc793398afa34a6
drm/amd/display: Add error check for avi and vendor infoframe setup function

The function fill_stream_properties_from_drm_display_mode() calls the
function drm_hdmi_avi_infoframe_from_display_mode() and the
function drm_hdmi_vendor_infoframe_from_display_mode(), but does
not check its return value. Log the error messages to prevent silent
failure if either function fails.

Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c