]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: fix locking in smu_feature_set_supported()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 15 May 2019 09:51:30 +0000 (12:51 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 May 2019 17:56:05 +0000 (12:56 -0500)
commit0effc01821b90b954b435300951d72cb9e36c83d
tree994b5e25e9c3c4e790728b9f266ea60758feb543
parent7e4eeb6d04f3ed7b168219658339dddf2fcfdb0d
drm/amd/powerplay: fix locking in smu_feature_set_supported()

There is a typo so the code unlocks twice instead of taking the lock and
then releasing it.

Fixes: 1ec279a0aca2 ("drm/amd/powerplay: implement update enabled feature state to smc for smu11")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c