drm/amd/display: Fix NULL pointer on MST chained mode
authorJerry Zuo <Jerry.Zuo@amd.com>
Fri, 8 Sep 2017 20:40:34 +0000 (16:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:41:15 +0000 (16:41 -0400)
commitfc17235fe65b0179969e0793a086cba93afcc078
treefc3db2188b84cb7a3aa13ff9788c97a3aa4299aa
parentf4ac176e62fdc74e52ee58461fb7c8912322fc1c
drm/amd/display: Fix NULL pointer on MST chained mode

Prevent NULL pointer on new_stream being added to ctx
when added MST connectors cannot be found in existing crtc_state
in the chained mode

Signed-off-by: Jerry Zuo <Jerry.Zuo@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