Commit 3fb9dd5f authored by Dan Carpenter's avatar Dan Carpenter Committed by Alex Deucher

drm/amdgpu: release correct lock in amdgpu_gfx_enable_kgq()

This function was releasing the incorrect lock on the error path.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Fixes: 1156e1a6 ("drm/amdgpu: add [en/dis]able_kgq() functions")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 9a06655e
......@@ -644,7 +644,7 @@ int amdgpu_gfx_enable_kgq(struct amdgpu_device *adev, int xcc_id)
adev->gfx.num_gfx_rings);
if (r) {
DRM_ERROR("Failed to lock KIQ (%d).\n", r);
spin_unlock(&adev->gfx.kiq[0].ring_lock);
spin_unlock(&kiq->ring_lock);
return r;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment