drm/amd/display: Destroy connector state on reset
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Wed, 16 May 2018 14:31:30 +0000 (10:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 May 2018 18:27:32 +0000 (13:27 -0500)
commitdf099b9b60c6c378b1cd2024d1a21a87459b6614
tree3feb6a82f206a21f1615bc95a0795971610a9f11
parentaa6d4a59d686d3172012c19874add120e02c113f
drm/amd/display: Destroy connector state on reset

When a DRM mode reset is called on resume, the connector state's
destructor is not called. This leaves a dangling reference on the CRTC
commit object, which was obtained by the connector state during commit
setup.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@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