linux-brain/drivers/gpu/drm/amd
Victor Lu 0db8d192ee drm/amd/display: Decrement refcount of dc_sink before reassignment
[ Upstream commit 8e92bb0fa75bca9a57e4aba2e36f67d8016a3053 ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-02-17 10:35:15 +01:00
..
acp treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
amdgpu drm/amdgpu/psp: fix psp gfx ctrl cmds 2021-01-27 11:47:45 +01:00
amdkfd drm/amdkfd: Fix leak in dmabuf import 2020-12-30 11:51:30 +01:00
display drm/amd/display: Decrement refcount of dc_sink before reassignment 2021-02-17 10:35:15 +01:00
include amdgpu/gmc_v9: save/restore sdpif regs during S3 2020-03-05 16:43:43 +01:00
powerplay drm/amd/pm: do not use ixFEATURE_STATUS for checking smc running 2020-11-18 19:20:23 +01:00