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)
commit3e06db4d62a80932395fea36e4081a4c15116bae
treebc69c065ede318a18ab7f98d30e9005e4b2dee48
parentabaf210c281d8e829324bc49e8b0bf665ea88a7b
drm/amdgpu: add missing unreserve on error

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

Fixes: 9e5d275319e224 ("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