drm/amdgpu/mes: Fix an error handling path in amdgpu_mes_self_test()
authorJianglei Nie <niejianglei2021@163.com>
Tue, 5 Jul 2022 13:46:03 +0000 (21:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jul 2022 20:18:07 +0000 (16:18 -0400)
commitc3c483391bb23e9bb8d8a51e54fefcf508b1cce3
tree9eb5b75555fc32ce6d64407b210f4e570a22308e
parent3e211f23aa1e1a3223edb64c4bc25cae28a1e3ae
drm/amdgpu/mes: Fix an error handling path in amdgpu_mes_self_test()

if amdgpu_mes_ctx_alloc_meta_data() fails, we should call amdgpu_vm_fini()
to handle amdgpu_vm_init().

Add a new lable before amdgpu_vm_init() and goto this lable when
amdgpu_mes_ctx_alloc_meta_data() fails.

Signed-off-by: Jianglei Nie <niejianglei2021@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c