]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: add missing unreserve on error
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 25 May 2021 12:46:55 +0000 (15:46 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 May 2021 03:44:29 +0000 (23:44 -0400)
commitcde1601f169441c291c7d55f795eeb3060965307
treebc69c065ede318a18ab7f98d30e9005e4b2dee48
parentfdd317fe01ca410f96118c0847efa4effc5bb291
drm/amdgpu: add missing unreserve on error

The amdgpu_bo_unreserve() has to be done on the error path as well.

Fixes: 90f7c129db540a ("drm/amdgpu: Move kfd_mem_attach outside reservation")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-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