drm/amd/display: Fix dc_sink kref count in emulated_link_detect
authorVictor Lu <victorchengchi.lu@amd.com>
Fri, 15 Jan 2021 03:24:14 +0000 (22:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Feb 2021 22:43:40 +0000 (17:43 -0500)
commit3ddc818d9bb877c64f5c649beab97af86c403702
treee547c1532422f4c9577d1474f8e5c0a34a2dacef
parent58180a0cc0c57fe62a799a112f95b60f6935bd96
drm/amd/display: Fix dc_sink kref count in emulated_link_detect

[why]
prev_sink is not used anywhere else in the function and the reference to
it from dc_link is replaced with a new dc_sink.

[how]
Change dc_sink_retain(prev_sink) to dc_sink_release(prev_sink).

Signed-off-by: Victor Lu <victorchengchi.lu@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c