]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix memory leak caused by missed dc_sink_release
authorSivapiriyanKumarasamy <sivapiriyan.kumarasamy@amd.com>
Wed, 15 Aug 2018 20:55:18 +0000 (16:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 19:53:37 +0000 (14:53 -0500)
commitfc4a847c6f6663ccb20ef3f36a4d9c71d21d4a5b
tree9fb7a761440f8d39d8ac10be305f2745df879968
parent850d7b05cb1acf3c132ed34f7a1d37c601a80703
drm/amd/display: Fix memory leak caused by missed dc_sink_release

[Why]
There is currently an intermittent hang from a memory leak in
DTN stress testing. It is caused by unfreed memory during driver
disable.

[How]
Do a dc_sink_release in the case that skips it incorrectly.

Signed-off-by: SivapiriyanKumarasamy <sivapiriyan.kumarasamy@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c