]> 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)
commit031b1b468030cdac5d7feabc01cbc6f9442b7dd0
treeb3cb41aab8afd9a3df964bf545853158f7630f46
parent4f14e8ad6357a5316aa47546dd07fefb00e54900
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