drm/amdgpu: Optimization of AMDGPU_BO_LIST_OP_CREATE (v2)
authorAlex Xie <AlexBin.Xie@amd.com>
Fri, 16 Jun 2017 04:23:41 +0000 (00:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Jun 2017 21:31:22 +0000 (17:31 -0400)
commit99eea4df901907b9121ad1c726d86c352a5eaca5
treee5dbdd5c1cc5247ee63e99002948512202843789
parent660e855813f78b7fe63ff1ebc4f2ca07d94add0b
drm/amdgpu: Optimization of AMDGPU_BO_LIST_OP_CREATE (v2)

v2: Remove duplication of zeroing of bo list (Christian König)
    Move idr_alloc function to end of ioctl (Christian König)
    Call kfree bo_list when amdgpu_bo_list_set return error.
    Combine the previous two patches into this patch.
    Add amdgpu_bo_list_set function prototype.

Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c