OSDN Git Service

drm/amdkfd: err_pin_bo path leaks kfd_bo_list
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 29 Nov 2021 20:21:50 +0000 (15:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Dec 2021 21:16:00 +0000 (16:16 -0500)
commita899fe8b433be3d2c6bb9218f2b885d91f3079c4
tree3f91d26cfe0f8056251d79246086f273049886e8
parentea6c66449692399005f975b69c72a9e1797871f2
drm/amdkfd: err_pin_bo path leaks kfd_bo_list

Refactor userptr and pin_bo path to make it less confusing, move
err_pin_bo label up to remove mem from process_info kfd_bo_list.

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c