]> git.baikalelectronics.ru Git - kernel.git/commit
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 17:10:40 +0000 (12:10 -0500)
commit30164a1657ef43fd65f2da43b36506982121d663
tree9070b540f28c925ea576319c0ea12095a7c757d8
parentbae72358f6a28e1a7f1a1c5a99e5d870360d8e46
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