diff options
author | Jerry (Fangzhi) Zuo <[email protected]> | 2019-01-24 11:46:49 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2019-02-06 13:29:48 -0500 |
commit | 3f01f098a4e2ef30ef628497c43a3d568e720376 (patch) | |
tree | 599058c0ae6537e5352968bc9a6fc07653f4f4a2 | |
parent | 5062b797db4103218fa00ee254417b8ecaab7401 (diff) |
drm/amd/display: Clear dc_sink after it gets released
[Why]
The dc_sink was released but the pointer on the aconnector was
not cleared.
[How]
Clear it.
Signed-off-by: Jerry (Fangzhi) Zuo <[email protected]>
Reviewed-by: Nicholas Kazlauskas <[email protected]>
Acked-by: Bhawanpreet Lakha <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c index 73f8e8fa6edb..44c1a02e6452 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c @@ -173,8 +173,10 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector) aconnector->edid = edid; } - if (aconnector->dc_sink && aconnector->dc_sink->sink_signal == SIGNAL_TYPE_VIRTUAL) + if (aconnector->dc_sink && aconnector->dc_sink->sink_signal == SIGNAL_TYPE_VIRTUAL) { dc_sink_release(aconnector->dc_sink); + aconnector->dc_sink = NULL; + } if (!aconnector->dc_sink) { struct dc_sink *dc_sink; |