OSDN Git Service

drm/amdgpu: unlock on error in gfx_v9_4_3_kiq_resume()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 3 May 2023 15:09:35 +0000 (18:09 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:32:27 +0000 (09:32 -0400)
commitf4409a2361152f3480781a1dea1a3bd0d8369c78
tree6ef3779bf51b8f4136fd6315624b2101948ee5f8
parent7a6a2e59aacd6d5e75927352b72d39a5bc447e09
drm/amdgpu: unlock on error in gfx_v9_4_3_kiq_resume()

Smatch complains that we need to drop this lock before returning.

    drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:1838 gfx_v9_4_3_kiq_resume()
    warn: inconsistent returns 'ring->mqd_obj->tbo.base.resv'.

Fixes: 86301129698b ("drm/amdgpu: split gc v9_4_3 functionality from gc v9_0")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c