linux/drivers/gpu/drm/amd
Victor Lu 8e92bb0fa7 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 17:45:01 -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 17:36:33 -05:00
amdkfd drm/amdkfd: Fix out-of-bounds read in kdf_create_vcrat_image_cpu() 2021-01-14 00:23:39 -05:00
display drm/amd/display: Decrement refcount of dc_sink before reassignment 2021-02-02 17:45:01 -05:00
include drm/amdgpu: new macro for determining 2ND_USB20PORT support 2020-12-10 16:41:49 -05:00
pm drm/amd/pm: fill in the data member of v2 gpu metrics table for vangogh 2021-02-02 17:35:13 -05:00