mirror_ubuntu-kernels/drivers/gpu/drm/amd
Victor Lu c64b0d6bb5 drm/amd/display: Decrement refcount of dc_sink before reassignment
[why]
An old dc_sink state is causing a memory leak because it is missing a
dc_sink_release before a new dc_sink is assigned back to
aconnector->dc_sink.

[how]
Decrement the dc_sink refcount before reassigning it to a new dc_sink.

Signed-off-by: Victor Lu <victorchengchi.lu@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@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>
2021-02-02 12:12:02 -05:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu: enable freesync for A+A configs 2021-02-02 12:06:54 -05:00
amdkfd drm/amdkfd: Enable userptr support when KFD is enabled 2021-01-21 09:55:16 -05:00
display drm/amd/display: Decrement refcount of dc_sink before reassignment 2021-02-02 12:12:02 -05:00
include drm/amdgpu:Add pcie gen5 support in pcie capability. 2021-01-21 09:54:56 -05:00
pm drm/amd/pm: remove some useless code for vangogh 2021-02-02 12:06:44 -05:00