]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5df113f3f05f58eaec258feb7a991069a41f34c2
treeb3cb41aab8afd9a3df964bf545853158f7630f46
parent694b64d6f7191b4183be5c365a495e426cdf523d
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