aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2024-06-04 01:37:49 +0000
committerAlex Deucher <[email protected]>2024-09-10 17:44:30 +0000
commit6c6ca71bc1653d00623702ae031d0f9bde06a6fc (patch)
tree8e21cb350cbad470d4f8c81380029a9b76ae5f38 /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
parentdrm: new helper: drm_gem_prime_handle_to_dmabuf() (diff)
downloadkernel-6c6ca71bc1653d00623702ae031d0f9bde06a6fc.tar.gz
kernel-6c6ca71bc1653d00623702ae031d0f9bde06a6fc.zip
drm/amdgpu: fix a race in kfd_mem_export_dmabuf()
Using drm_gem_prime_handle_to_fd() to set dmabuf up and insert it into descriptor table, only to have it looked up by file descriptor and remove it from descriptor table is not just too convoluted - it's racy; another thread might have modified the descriptor table while we'd been going through that song and dance. Switch kfd_mem_export_dmabuf() to using drm_gem_prime_handle_to_dmabuf() and leave the descriptor table alone... Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Al Viro <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions