aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
diff options
context:
space:
mode:
authorLang Yu <[email protected]>2022-07-26 05:32:39 +0000
committerAlex Deucher <[email protected]>2022-07-28 20:05:16 +0000
commit0dc204bc3f199de0a0924f3d5f7c26295e5c012e (patch)
tree707a5596415a8b735ffd7cb9789560c46a565d0c /drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
parentdrm/amdgpu: add debugfs for kfd system and ttm mem used (diff)
downloadkernel-0dc204bc3f199de0a0924f3d5f7c26295e5c012e.tar.gz
kernel-0dc204bc3f199de0a0924f3d5f7c26295e5c012e.zip
drm/amdkfd: fix kgd_mem memory leak when importing dmabuf
The kgd_mem memory allocated in amdgpu_amdkfd_gpuvm_import_dmabuf() is not freed properly. Explicitly free it in amdgpu_amdkfd_gpuvm_free_memory_of_gpu() under condition "mem->bo->kfd_bo != mem". Suggested-by: Felix Kuehling <[email protected]> Signed-off-by: Lang Yu <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c')
0 files changed, 0 insertions, 0 deletions