]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
drm/amdgpu: fix missed asd bo free when hw_fini
authorHuang Rui <ray.huang@amd.com>
Sun, 11 Jun 2017 10:28:00 +0000 (18:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jul 2017 15:06:12 +0000 (11:06 -0400)
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index dc2cc28c9588d955504c170ba1ffced86dce29d3..e54c8fe902889a9a307c2c65712426ac60dcd3c9 100644 (file)
@@ -440,6 +440,8 @@ static int psp_hw_fini(void *handle)
                              &psp->fw_pri_mc_addr, &psp->fw_pri_buf);
        amdgpu_bo_free_kernel(&psp->fence_buf_bo,
                              &psp->fence_buf_mc_addr, &psp->fence_buf);
+       amdgpu_bo_free_kernel(&psp->asd_shared_bo, &psp->asd_shared_mc_addr,
+                             &psp->asd_shared_buf);
 
        kfree(psp->cmd);
        psp->cmd = NULL;