drm/amdkfd: Fix an inappropriate error handling in allloc memory of gpu
authorLang Yu <lang.yu@amd.com>
Mon, 11 Oct 2021 05:57:25 +0000 (13:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Oct 2021 21:13:48 +0000 (17:13 -0400)
commit5aeeac6fa38fca450faed9770f75b1470c0e2073
tree6511c46a5b32451b83bdd0770613eafe113288a8
parent48737ac4d70faffeb516e2a9847e24f9a7eee05f
drm/amdkfd: Fix an inappropriate error handling in allloc memory of gpu

We should unreference a gem object instead of an amdgpu bo here.

Fixes: fd9a9f8801de ("drm/amdgpu: Use GEM obj reference for KFD BOs")

Signed-off-by: Lang Yu <lang.yu@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_amdkfd_gpuvm.c