summaryrefslogtreecommitdiff
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorRamprasad Katkam <katkam@codeaurora.org>2017-12-08 16:39:17 +0530
committerMichael Bestas <mkbestas@gmail.com>2020-04-18 03:46:41 +0300
commite9a88099f341997c3667af4f655b9ad3f40d1f5f (patch)
tree829efa9f353c3e49e350400c7e56fa7856f19a17 /sound/soc/codecs
parent612b12a0e3ba266c1e469cddf947f51e2239fc4a (diff)
audio-lnx: Correct mutex usage during error handling
Release the acquired mutex when there is failure in enabling the soundwire clock. Change-Id: I2e10ed7f0bd86524998a67d62e85754f7989eca2 Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/msm_sdw/msm_sdw_cdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/msm_sdw/msm_sdw_cdc.c b/sound/soc/codecs/msm_sdw/msm_sdw_cdc.c
index fa157b4534b3..66be0ae2d014 100644
--- a/sound/soc/codecs/msm_sdw/msm_sdw_cdc.c
+++ b/sound/soc/codecs/msm_sdw/msm_sdw_cdc.c
@@ -256,8 +256,8 @@ static int msm_int_enable_sdw_cdc_clk(struct msm_sdw_priv *msm_sdw,
msm_sdw->int_mclk1_enabled = false;
}
}
- mutex_unlock(&msm_sdw->cdc_int_mclk1_mutex);
rtn:
+ mutex_unlock(&msm_sdw->cdc_int_mclk1_mutex);
return ret;
}
EXPORT_SYMBOL(msm_int_enable_sdw_cdc_clk);