drm:amd:amdgpu: Fix missing buffer object unlock in failure path
authorSukrut Bellary <sukrut.bellary@linux.com>
Wed, 3 May 2023 23:15:07 +0000 (16:15 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:40:52 +0000 (10:40 -0400)
commit1385d88c6aa774332f1a88562b6f1bf04de6d710
tree9dca6aa0dadf5dad4d0315d099cea2c6396c34b9
parentb18f05a0666aecd5cb19c26a8305bcfa4e9d6502
drm:amd:amdgpu: Fix missing buffer object unlock in failure path

smatch warning -
1) drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:3615 gfx_v9_0_kiq_resume()
warn: inconsistent returns 'ring->mqd_obj->tbo.base.resv'.

2) drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:6901 gfx_v10_0_kiq_resume()
warn: inconsistent returns 'ring->mqd_obj->tbo.base.resv'.

Signed-off-by: Sukrut Bellary <sukrut.bellary@linux.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c