drm/amdgpu: Free user pages if kvmalloc_array fails
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 29 Apr 2022 00:17:38 +0000 (20:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 13:53:40 +0000 (09:53 -0400)
commit068421b1730fe65fb4f73921fdb78c080b0c62f4
treeb3cb41aab8afd9a3df964bf545853158f7630f46
parent11c4328a82d542653fda0c60ffd9aab8ba9d5ce8
drm/amdgpu: Free user pages if kvmalloc_array fails

To cleanup the BOs of bo_list which have got user pages.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Christian König <christian.koenig@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_cs.c