]> 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)
commit533ebe10c8acbcdad0c7c40289d634e7e02c4681
tree994b5e25e9c3c4e790728b9f266ea60758feb543
parent9828d79a1d091f187aaa124a1a5e2da0f75369fb
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: 06b833c85d7f ("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