drm/amdgpu: unreserve the gem BO before returning from attach error
authorPrike Liang <Prike.Liang@amd.com>
Tue, 6 May 2025 08:32:23 +0000 (16:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 May 2025 21:44:59 +0000 (17:44 -0400)
commitdef41146b96a9e292a17cddb1ac97007f41c44bc
treee5216a98479821becc76d1ebceab1fd8525dd1af
parent926c79ad6ecde21e7e2d7415f873d57c364611f1
drm/amdgpu: unreserve the gem BO before returning from attach error

It requires unlocking the reserved gem BO before returning from
attaching the eviction fence error.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c