]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Release fake sink
authorMikita Lipski <mikita.lipski@amd.com>
Tue, 1 May 2018 15:33:25 +0000 (11:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 May 2018 18:22:03 +0000 (13:22 -0500)
commitf3e6a4edd8fea3e74175412296a21ec009f99415
tree81356b47eaf1f604b7a3853515af0ea1b88205f9
parentececb0fb2f4e7b2e7be5fb68ff90c9f70b2d0baa
drm/amd/display: Release fake sink

If connector doesn't have a sink, fake sink is created, but
never released as it assumed that its destroyed with the
stream it is used for. But now sink is released before the
stream maintaing refcount consistency.

This way we also avoid assigning anything to connector keeping
all the operation local.

Signed-off-by: Mikita Lipski <mikita.lipski@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