diff options
author | Jun Lei <Jun.Lei@amd.com> | 2018-09-18 16:38:20 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-10-10 01:03:31 +0300 |
commit | 88ed9fb77ef420cf2e4ec1624f3e638685e28c8d (patch) | |
tree | 665f61f7b38c329eb0102d06156c7db5937190d7 /drivers/gpu/drm/amd/display/amdgpu_dm | |
parent | 5e174ce63ed7da4807ee86913fda35229d60cdab (diff) | |
download | linux-88ed9fb77ef420cf2e4ec1624f3e638685e28c8d.tar.xz |
drm/amd/display: fix memory leak in resource pools
[why]
ddc engines were recently changed to be independently tracked
from pipe count. the change was reflected in resource constructor
but not in destructor. this manifests as a memory leak when
pipe harvesting is enabled, since not all constructed ddc engines
are freed
[how]
make destructor symmetric with constructor for all dcX_resource
Signed-off-by: Jun Lei <Jun.Lei@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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm')
0 files changed, 0 insertions, 0 deletions