drm/amdgpu: fix error handling in cz_dpm_hw_fini/cz_dpm_suspend
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Apr 2015 15:42:54 +0000 (11:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:22 +0000 (21:03 -0400)
commit1045745742fc12c1320ccce849ca2810c6563f8d
tree22e5bd974c9676c6812c54d59d50901a92c40156
parentdecee87a88c05980ebc545c19d4ff252052ddc3e
drm/amdgpu: fix error handling in cz_dpm_hw_fini/cz_dpm_suspend

Need to unlock the mutex on error.

Noticed-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/cz_dpm.c