Re: [PATCH 1/1] drm/amdgpu: Fix double free of dmabuf

2022-06-15 Thread Jonathan Gray
As mentioned earlier, you should send these patches to the linux maintainers. We don't even build this file. On Wed, Jun 15, 2022 at 11:29:31AM +0800, Xiaohui Zhang wrote: > amdgpu_amdkfd_gpuvm_free_memory_of_gpu drop dmabuf reference increased in > amdgpu_gem_prime_export. > amdgpu_bo_destroy dr

[PATCH 1/1] drm/amdgpu: Fix double free of dmabuf

2022-06-15 Thread Xiaohui Zhang
amdgpu_amdkfd_gpuvm_free_memory_of_gpu drop dmabuf reference increased in amdgpu_gem_prime_export. amdgpu_bo_destroy drop dmabuf reference increased in amdgpu_gem_prime_import. So remove this extra dma_buf_put to avoid double free. Signed-off-by: Xiaohui Zhang --- sys/dev/pci/drm/amd/amdgpu/amd