]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/gmc: Use consistent variable on unlocks
authorColin Ian King <colin.king@canonical.com>
Fri, 24 Apr 2020 12:56:40 +0000 (13:56 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 Apr 2020 15:42:11 +0000 (11:42 -0400)
commit70b7d9bd05afcb74edbdc77c36709b0c4d2333cb
tree0dc87439c7c36f1936185885ca0191ebceb2b084
parent9ef7a5a5303cf9b7c1d8ff7d96a543e3639c389d
drm/amdgpu/gmc: Use consistent variable on unlocks

Currently the error returns paths are unlocking lock kiq->ring_lock
however it seems this should be dev->gfx.kiq.ring_lock as this
is the lock that is being locked and unlocked around the ring
operations.  This looks like a bug, but it's not.  The kiq is just
a local variable pointing to the same structure.  Make it consistent.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c