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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:15 +0000 (16:56 +0200)
commit5885fce7b43919406b32d1c942c9b496aac3abbc
tree3cf55e6843d8979f58553bb0ca3ac087ba4dc357
parent0cd39c96574d19e234cee971868c82c3769c2ee6
drm/amd/dc: Fix a missing check bug in dm_dp_mst_detect()

[ Upstream commit 655c0ed19772d92c9665ed08bdc5202acc096dda ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c