RE: [PATCH 1/1] drm/amdkfd: Fix leak in dmabuf import

2020-12-08 Thread Russell, Kent
[AMD Public Use] Seems logical to me. Reviewed-by: Kent Russell > -Original Message- > From: amd-gfx On Behalf Of Felix > Kuehling > Sent: Tuesday, December 8, 2020 12:31 PM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH 1/1] drm/amdkfd: Fix leak in dmabuf i

[PATCH 1/1] drm/amdkfd: Fix leak in dmabuf import

2020-12-08 Thread Felix Kuehling
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 --- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 2 ++ 1 file cha