drm/amdgpu: release correct lock in amdgpu_gfx_enable_kgq()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 9 May 2023 14:21:14 +0000 (17:21 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:36:53 +0000 (09:36 -0400)
commit3fb9dd5fef7ccd756544713e6e84db1c525816c4
tree0a988d4da76b624657b6453540e67e2c337b8825
parent9a06655e73834819149466ae8170ffe53b23e6f8
drm/amdgpu: release correct lock in amdgpu_gfx_enable_kgq()

This function was releasing the incorrect lock on the error path.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 1156e1a60f02 ("drm/amdgpu: add [en/dis]able_kgq() functions")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c