drm/amd/powerplay: Fix double unlock bug in smu_sys_set_pp_table()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 21 Mar 2019 06:28:22 +0000 (09:28 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 Mar 2019 19:05:26 +0000 (14:05 -0500)
commit6c851417336af718587a83b27fbe83480c31fc2f
tree6f6a78b62a88f787f2d1540992db70c50cab8e17
parent8513027a73c2f2d9a4d4c82e3e805b2f9219767f
drm/amd/powerplay: Fix double unlock bug in smu_sys_set_pp_table()

We already unlocked a few lines earlier so this code unlocks twice on
the success path.

Fixes: 289921b03fe5e ("drm/amd/powerplay: implement sysfs of pp_table for smu11 (v2)")
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c