drm/amd/powerplay: fix a couple locking issues
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 3 Apr 2017 18:42:42 +0000 (21:42 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Apr 2017 17:40:34 +0000 (13:40 -0400)
commit99147e64428b9c3bfcd97e545ae478906c79e6a8
tree220397e7dad636370d028a0554453d4d66ef5f05
parent0f987cd0d78ead344a07c6fe215234f3be51d051
drm/amd/powerplay: fix a couple locking issues

We should return unlock on the error path in pp_dpm_dispatch_tasks()
and there is a double lock bug in pp_dpm_set_sclk_od().

Fixes: 2a5071056e6a ("drm/amd/powerplay: add global PowerPlay mutex.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amd_powerplay.c