drm/amd/dc: Fix a missing check bug in dm_dp_mst_detect()
authorYingjie Wang <wangyingjie55@126.com>
Fri, 9 Apr 2021 00:57:20 +0000 (17:57 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Apr 2021 21:19:22 +0000 (17:19 -0400)
commit655c0ed19772d92c9665ed08bdc5202acc096dda
tree239f95b5bd66ce6fd9ca59809712d52f99bc62c5
parentc6c6a712199ab355ce333fa5764a59506bb107c1
drm/amd/dc: Fix a missing check bug in dm_dp_mst_detect()

In dm_dp_mst_detect(), We should check whether or not @connector
has been unregistered from userspace. If the connector is unregistered,
we should return disconnected status.

Fixes: 4562236b3bc0 ("drm/amd/dc: Add dc display driver (v2)")
Signed-off-by: Yingjie Wang <wangyingjie55@126.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c