]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Fix leak in dmabuf import
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 8 Dec 2020 17:23:15 +0000 (12:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Dec 2020 04:05:47 +0000 (23:05 -0500)
commit15f89d921a732bdfbaa48883ae80f633054495e2
treec332c97780aa9c930d82c438c95902a1a131e87f
parent6b4ef1faaa2f6b37e40dc0f437a2ab7d68e38ec3
drm/amdkfd: Fix leak in dmabuf import

Release dmabuf reference before returning from kfd_ioctl_import_dmabuf.
amdgpu_amdkfd_gpuvm_import_dmabuf takes a reference to the underlying
GEM BO and doesn't keep the reference to the dmabuf wrapper.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c