linux-brain/drivers/gpu/drm/amd/display
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
..
amdgpu_dm drm/amd/display: Decrement refcount of dc_sink before reassignment 2021-02-17 10:35:15 +01:00
dc drm/amd/display: Add more Clock Sources to DCN2.1 2021-02-17 10:35:15 +01:00
include drm/amd/display: fix pow() crashing when given base 0 2020-08-26 10:40:53 +02:00
modules drm/amdgpu: fix build_coefficients() argument 2020-12-30 11:51:04 +01:00
Kconfig drm/amd/display: add Renoir to kconfig 2019-08-29 15:52:33 -05:00
Makefile drm/amd/display: move clk_mgr files to right place 2019-05-31 10:39:31 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00