aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
diff options
context:
space:
mode:
authorPhilip Yang <Philip.Yang@amd.com>2022-12-14 10:15:17 -0500
committerAlex Deucher <alexander.deucher@amd.com>2022-12-20 12:46:07 -0500
commitcb8dc232cbd2f8ad7c2b30e4c851b3e49c2e3be2 (patch)
tree13835856e2866f5138794c7d2f9860de4057fa89 /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
parente4f665de417d8b923e638da1751c2c94eb68c713 (diff)
downloadlinux-cb8dc232cbd2f8ad7c2b30e4c851b3e49c2e3be2.tar.gz
linux-cb8dc232cbd2f8ad7c2b30e4c851b3e49c2e3be2.tar.bz2
linux-cb8dc232cbd2f8ad7c2b30e4c851b3e49c2e3be2.zip
drm/amdkfd: Fix kfd_process_device_init_vm error handling
Should only destroy the ib_mem and let process cleanup worker to free the outstanding BOs. Reset the pointer in pdd->qpd structure, to avoid NULL pointer access in process destroy worker. BUG: kernel NULL pointer dereference, address: 0000000000000010 Call Trace: amdgpu_amdkfd_gpuvm_unmap_gtt_bo_from_kernel+0x46/0xb0 [amdgpu] kfd_process_device_destroy_cwsr_dgpu+0x40/0x70 [amdgpu] kfd_process_destroy_pdds+0x71/0x190 [amdgpu] kfd_process_wq_release+0x2a2/0x3b0 [amdgpu] process_one_work+0x2a1/0x600 worker_thread+0x39/0x3d0 Signed-off-by: Philip Yang <Philip.Yang@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c')
0 files changed, 0 insertions, 0 deletions