]> 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)
commit861854e49ef5ddf2e02ab419b4ffcc1248a78003
tree9070b540f28c925ea576319c0ea12095a7c757d8
parent5474a1ef7e9b505a213cee5b3c57dafa6c23e15b
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