drm/amd/display: Check writeback connectors in create_validate_stream_for_sink
authorAlex Hung <alex.hung@amd.com>
Fri, 1 Dec 2023 13:25:28 +0000 (06:25 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2023 20:22:35 +0000 (15:22 -0500)
commitdbf5d3d02987faa0eec3710dd687cd912362d7b5
treee7ff39e4f4815babcda1b075f4a1e0e422d53ec9
parent3e094a2875260543ca74838decc0c995d3765096
drm/amd/display: Check writeback connectors in create_validate_stream_for_sink

[WHY & HOW]
This is to check connector type to avoid
unhandled null pointer for writeback connectors.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Fixes: 60e034f28600 ("drm/amd/display: Revert "drm/amd/display: Use drm_connector in create_validate_stream_for_sink"")
Signed-off-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c