drm/amd/display: Release dm_state->context when state is cleared.
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Tue, 11 Jul 2017 18:42:57 +0000 (14:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:15:04 +0000 (18:15 -0400)
commit0a323b84fab27fe51d35a4c55c73484c45c50f14
treeb4ea42202060f584b5ded0b25f9cdd2ab8542376
parent3b42a1c09568ac6b65bfa40931600c5fe49d31e2
drm/amd/display: Release dm_state->context when state is cleared.

Handling a use case of TEST_ONLY request from DRM where commit is
not goiing to be called. We need to release the allocated dc_validate_context
in this case.

Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-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
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c