drm/amd/display: Fix memoryleak during S3 resume.
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Fri, 20 Oct 2017 17:59:53 +0000 (13:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:53:53 +0000 (16:53 -0400)
commitaf09e48aa52377eb807709e2a1cdc33e9fd1ac94
tree702ef010acc02571f84517d4279fb62e608a5c14
parentfc9e9920b1d3a7a6af7eb993d531c36beb985570
drm/amd/display: Fix memoryleak during S3 resume.

Do not create dc_state within display_resume, since it's being
constructed within atomic check.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c